Skip to content

Commit 81e6ed5

Browse files
author
wzy
committed
feat: wzy上传
1 parent 543439e commit 81e6ed5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: WeChat MiniProgram Demo CI/CD
22

33
on:
4-
pull_request:
5-
types: [closed]
4+
push:
65
branches:
7-
- master
6+
- feat-ce
87
jobs:
98
upload:
10-
if: github.event.pull_request.merged == true && github.repository == 'wechat-miniprogram/miniprogram-demo'
119
runs-on: ubuntu-latest
1210
steps:
1311
- uses: actions/checkout@v4
@@ -29,7 +27,11 @@ jobs:
2927
env:
3028
WX_PRIVATE_KEY: ${{ secrets.WX_PRIVATE_KEY }}
3129
run: |
30+
# 验证密钥是否为空
31+
if [ -z "$WX_PRIVATE_KEY" ]; then
32+
echo "❌ 错误: WX_PRIVATE_KEY 为空,请检查 GitHub Secrets 设置"
33+
exit 1
34+
fi
3235
mkdir -p ./build
3336
echo "$WX_PRIVATE_KEY" > ./build/key
34-
chmod +x ./build/ci.js
35-
node ./build/ci.js --skip-key-write
37+
echo "$WX_PRIVATE_KEY" | xxd

0 commit comments

Comments
 (0)