File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,7 @@ name: WeChat MiniProgram Demo CI/CD
33on :
44 push :
55 branches :
6- - master
7- pull_request :
8- branches :
9- - master
6+ - feat-ce
107jobs :
118 upload :
129 runs-on : ubuntu-latest
1512 env :
1613 WX_PRIVATE_KEY : ${{ secrets.WX_PRIVATE_KEY }}
1714 run : |
15+ mkdir -p ./build
1816 echo "$WX_PRIVATE_KEY" > ./build/key
1917 node ./build/ci.js
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ if (!privateKeyContent) {
88 throw new Error ( '未找到私钥内容,请确保已正确配置 GitHub Secrets' )
99}
1010
11- const privateKeyPath = path . resolve ( __dirname , './private. key' )
11+ const privateKeyPath = path . resolve ( __dirname , './key' )
1212fs . writeFileSync ( privateKeyPath , privateKeyContent )
1313
1414const project = new ci . Project ( {
15- appid : 'wxe5f52902cf4de896 ' ,
15+ appid : 'wx622bee4f78fa4f5a ' ,
1616 type : 'miniProgram' ,
1717 projectPath : path . resolve ( __dirname , '../' ) ,
1818 privateKeyPath : path . resolve ( __dirname , './key' ) ,
You can’t perform that action at this time.
0 commit comments