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
3
3
on :
4
4
push :
5
5
branches :
6
- - master
7
- pull_request :
8
- branches :
9
- - master
6
+ - feat-ce
10
7
jobs :
11
8
upload :
12
9
runs-on : ubuntu-latest
15
12
env :
16
13
WX_PRIVATE_KEY : ${{ secrets.WX_PRIVATE_KEY }}
17
14
run : |
15
+ mkdir -p ./build
18
16
echo "$WX_PRIVATE_KEY" > ./build/key
19
17
node ./build/ci.js
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ if (!privateKeyContent) {
8
8
throw new Error ( '未找到私钥内容,请确保已正确配置 GitHub Secrets' )
9
9
}
10
10
11
- const privateKeyPath = path . resolve ( __dirname , './private. key' )
11
+ const privateKeyPath = path . resolve ( __dirname , './key' )
12
12
fs . writeFileSync ( privateKeyPath , privateKeyContent )
13
13
14
14
const project = new ci . Project ( {
15
- appid : 'wxe5f52902cf4de896 ' ,
15
+ appid : 'wx622bee4f78fa4f5a ' ,
16
16
type : 'miniProgram' ,
17
17
projectPath : path . resolve ( __dirname , '../' ) ,
18
18
privateKeyPath : path . resolve ( __dirname , './key' ) ,
You can’t perform that action at this time.
0 commit comments