Skip to content

Commit a1f856c

Browse files
committed
build: 复用发布分支的发布脚本完成发布流程
1 parent e9f0b2e commit a1f856c

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ jobs:
3131

3232
- name: Install pip dependencies
3333
run: |
34-
pip3 install semver
34+
pip3 install semver luadata
35+
36+
- name: Install apt dependencies
37+
run: |
38+
sudo rm -f /var/lib/man-db/auto-update
39+
sudo apt install --no-install-recommends lua5.1 p7zip-full
3540
3641
- name: Set up Git user
3742
run: |
@@ -84,10 +89,12 @@ jobs:
8489
tail -n +3 CHANGELOG.md >> $TMPFILE
8590
mv $TMPFILE CHANGELOG.md
8691
87-
- name: Commit changes
92+
- name: Run Publish Command
93+
run: |
94+
python3 \!src-dist/publish.py
95+
96+
- name: Push commits
8897
run: |
89-
git add CHANGELOG.md Boilerplate_!Base/src/lib/Base.lua
90-
git commit -m "chore: release v${{ github.event.inputs.version }}"
9198
git push -f origin stable
9299
93100
build:
@@ -157,6 +164,11 @@ jobs:
157164
name: dist-archives-${{ github.run_number }}-${{ github.sha }}
158165
path: \!src-dist/dist
159166

167+
- name: Set up Git user
168+
run: |
169+
git config --global user.name "github-actions[bot]"
170+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
171+
160172
- name: Run Release Command
161173
run: |
162174
python3 \!src-dist/release.py

0 commit comments

Comments
 (0)