mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Build and commit changes to 'dist' automatically
Instead of requiring that developers keep the 'dist' directory up-to-date, this process is now automated via a workflow. Whenever a commit is pushed to 'main' (or a 'release/**' branch), the workflow will build the application and commit any changes to the 'dist' directory.
This commit is contained in:
26
.github/workflows/ci-check-no-dist-update.yml
vendored
Normal file
26
.github/workflows/ci-check-no-dist-update.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: CI-check-no-dist-update
|
||||
|
||||
# Prohibit any change to 'dist/**' on a non-release branch
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- main
|
||||
- release/*
|
||||
paths:
|
||||
- dist**
|
||||
pull_request:
|
||||
paths:
|
||||
- dist/**
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
fail-on-dist-update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- run: |
|
||||
echo "The 'dist' directory is auotmatically updated by the release process."
|
||||
echo "It should not be updated manually in a non-release branch or a pull request."
|
||||
exit 1
|
||||
Reference in New Issue
Block a user