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:
daz
2024-04-10 07:29:08 -06:00
committed by Daz DeBoer
parent b64dafb1c9
commit 9e47918adf
5 changed files with 82 additions and 51 deletions

View 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