We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543439e commit 81e6ed5Copy full SHA for 81e6ed5
.github/workflows/ci.yml
@@ -1,13 +1,11 @@
1
name: WeChat MiniProgram Demo CI/CD
2
3
on:
4
- pull_request:
5
- types: [closed]
+ push:
6
branches:
7
- - master
+ - feat-ce
8
jobs:
9
upload:
10
- if: github.event.pull_request.merged == true && github.repository == 'wechat-miniprogram/miniprogram-demo'
11
runs-on: ubuntu-latest
12
steps:
13
- uses: actions/checkout@v4
@@ -29,7 +27,11 @@ jobs:
29
27
env:
30
28
WX_PRIVATE_KEY: ${{ secrets.WX_PRIVATE_KEY }}
31
run: |
+ # 验证密钥是否为空
+ if [ -z "$WX_PRIVATE_KEY" ]; then
32
+ echo "❌ 错误: WX_PRIVATE_KEY 为空,请检查 GitHub Secrets 设置"
33
+ exit 1
34
+ fi
35
mkdir -p ./build
36
echo "$WX_PRIVATE_KEY" > ./build/key
- chmod +x ./build/ci.js
- node ./build/ci.js --skip-key-write
37
+ echo "$WX_PRIVATE_KEY" | xxd
0 commit comments