Assemble Weapp Release #176
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 工作流名称 | |
name: Assemble Weapp Release | |
# 触发工作流程的事件 | |
on: | |
push: | |
tags: [ v*, w* ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
# 工作流环境变量 | |
env: | |
# 小程序的appid | |
WEAPP_ID: ${{ secrets.WEAPP_ID }} | |
# 小程序的秘钥 | |
WEAPP_KEY: ${{ secrets.WEAPP_KEY }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Import Weapp Key | |
run: echo "$WEAPP_KEY" | base64 --decode > key/private.appid.key | |
env: | |
WEAPP_KEY: ${{ env.WEAPP_KEY }} | |
- name: Build Taro Playground Weapp | |
run: pnpm build:weapp -- --upload | |
env: | |
WEAPP_ID: ${{ env.WEAPP_ID }} |