Skip to content

Commit 0de1a8b

Browse files
committed
Update workflow: Auto-commit dist files on releases
- Add step to commit dist files when creating releases - Keep upload artifacts for debugging - Ensures dist files are always up-to-date for tagged releases
1 parent 47a7de9 commit 0de1a8b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,12 @@ jobs:
4646
name: action-dist
4747
path: dist/
4848
retention-days: 30
49+
50+
- name: Commit dist files (on release)
51+
if: github.event_name == 'release'
52+
run: |
53+
git config --local user.email "action@github.com"
54+
git config --local user.name "GitHub Action"
55+
git add dist/
56+
git diff --staged --quiet || git commit -m "Build: Update dist files for release ${{ github.event.release.tag_name }}"
57+
git push

0 commit comments

Comments
 (0)