Skip to content

feat: 测试 #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: WeChat MiniProgram Demo CI/CD

on:
push:
branches:
- master
pull_request:
types: [closed]
branches:
- master

permissions:
contents: read
actions: read

jobs:
upload:
if: github.event.pull_request.merged == true && github.repository == 'wechat-miniprogram/miniprogram-demo'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -29,7 +34,12 @@ jobs:
env:
WX_PRIVATE_KEY: ${{ secrets.WX_PRIVATE_KEY }}
run: |
# 验证密钥是否为空
if [ -z "$WX_PRIVATE_KEY" ]; then
echo "❌ 错误: WX_PRIVATE_KEY 为空,请检查 GitHub Secrets 设置"
exit 1
fi
mkdir -p ./build
echo "$WX_PRIVATE_KEY" > ./build/key
chmod +x ./build/ci.js
node ./build/ci.js --skip-key-write
echo "$WX_PRIVATE_KEY" | xxd

Loading