Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 730 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 730 Bytes

ghcr.io/rick-liruixin/miniprogram-ci

How to use in GitHub Actions

name: Miniprogram CI

on:
  release:
    types:
      - released

env:
  APP_ID: { Your appid here }

jobs:
  job:
    name: CI/CD
    runs-on: [self-hosted, Linux, X64]
    container:
      image: ghcr.io/rick-liruixin/miniprogram-ci:v1.0.0
      volumes:
        - /path/to/private/keys:/private-keys
    steps:
      - uses: actions/checkout@v3
      - run: npm install
      - run: npm run build
      - run: miniprogram-ci upload -v false --pp ./dist --pkp /private-keys/private-key.txt --enable-es6 true --enable-minify true --enable-autoprefixwxss true --uv $GITHUB_REF_NAME --ud $GITHUB_SHA --appid $APP_ID --qrcode-format terminal -r 1