File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 11name : WeChat MiniProgram Demo CI/CD
22
33on :
4- push :
4+ pull_request :
5+ types : [closed]
56 branches :
6- - feat-ce
7+ - master
78jobs :
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 }}
You can’t perform that action at this time.
0 commit comments