Skip to content

Commit 331cced

Browse files
authored
Merge pull request #3 from PCL-Community/master
篡位来了
2 parents c7e113c + a33db83 commit 331cced

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/pack.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Pack Help.zip
2+
on:
3+
push:
4+
paths: '**/**'
5+
workflow_dispatch:
6+
7+
jobs:
8+
update-help:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
13+
- name: Pack
14+
run: |
15+
rm -f * || true
16+
rm -r .*
17+
zip -r Help.zip ./
18+
19+
- name: Upload a Build Artifact
20+
uses: actions/upload-artifact@v4
21+
with:
22+
name: Help
23+
path: Help.zip
24+
25+
- uses: actions/checkout@v5
26+
with:
27+
repository: PCL-Community/PCL2-CE
28+
29+
- uses: actions/download-artifact@v5
30+
with:
31+
path: 'Plain Craft Launcher 2/Resources'
32+
33+
- name: Import GPG key
34+
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec
35+
with:
36+
gpg_private_key: ${{ secrets.UPDATE_GPG_PRIVATE_KEY }}
37+
passphrase: ${{ secrets.UPDATE_GPG_PASSPHRASE }}
38+
git_user_signingkey: true
39+
git_commit_gpgsign: true
40+
41+
- name: Update Help.zip
42+
run: |
43+
git config user.name "PCL-Community-Bot"
44+
git config user.email "167983016+PCL-Community-Bot@users.noreply.github.com"
45+
git commit -S -a -m "chore: update Help.zip to ${{ github.ACTION_REPOSITORY }}@${{ github.sha }}"
46+
git push origin dev

0 commit comments

Comments
 (0)