Skip to content

Assemble Weapp Release #180

Assemble Weapp Release

Assemble Weapp Release #180

# 工作流名称
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
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- 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 }}