Skip to content

Commit 923f1c7

Browse files
author
v_guanglwen
committed
feat: 修改workflows
1 parent 10563de commit 923f1c7

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
name: WeChat MiniProgram Demo CI/CD
22

33
on:
4-
push:
4+
pull_request:
5+
types: [closed]
56
branches:
6-
- feat-ce
7+
- master
78
jobs:
89
upload:
10+
if: github.event.pull_request.merged == true && github.repository == 'wechat-miniprogram/miniprogram-demo'
911
runs-on: ubuntu-latest
1012
steps:
1113
- uses: actions/checkout@v4
1214
with:
1315
fetch-depth: 0
1416
submodules: 'recursive'
1517
token: ${{ secrets.GITHUB_TOKEN }}
16-
17-
- name: Verify file existence
18-
run: |
19-
echo "当前工作目录:"
20-
pwd
21-
echo "目录内容:"
22-
ls -la
23-
echo "build目录内容:"
24-
ls -la ./build/
25-
echo "子模块状态:"
26-
git submodule status
18+
19+
- name: Clone submodule
20+
run: git submodule status
2721

2822
- name: Install dependencies
2923
run: npm install
3024

3125
- name: Run package script
3226
run: npm run init
33-
27+
28+
- name: Debug Print Key
29+
run: |
30+
echo "Key length: ${#WX_PRIVATE_KEY}"
31+
3432
- name: Upload MiniProgram
3533
env:
3634
WX_PRIVATE_KEY: ${{ secrets.WX_PRIVATE_KEY }}

0 commit comments

Comments
 (0)