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 1
1
name : WeChat MiniProgram Demo CI/CD
2
2
3
3
on :
4
- push :
4
+ pull_request :
5
+ types : [closed]
5
6
branches :
6
- - feat-ce
7
+ - master
7
8
jobs :
8
9
upload :
10
+ if : github.event.pull_request.merged == true && github.repository == 'wechat-miniprogram/miniprogram-demo'
9
11
runs-on : ubuntu-latest
10
12
steps :
11
13
- uses : actions/checkout@v4
12
14
with :
13
15
fetch-depth : 0
14
16
submodules : ' recursive'
15
17
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
27
21
28
22
- name : Install dependencies
29
23
run : npm install
30
24
31
25
- name : Run package script
32
26
run : npm run init
33
-
27
+
28
+ - name : Debug Print Key
29
+ run : |
30
+ echo "Key length: ${#WX_PRIVATE_KEY}"
31
+
34
32
- name : Upload MiniProgram
35
33
env :
36
34
WX_PRIVATE_KEY : ${{ secrets.WX_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments