Skip to content

ci: update demo ci

ci: update demo ci #49

Workflow file for this run

name: MP_PREVIEW
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [develop]
concurrency:
group: mp-preview-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
preview:
runs-on: ubuntu-latest
if: github.repository == 'TDesignOteam/tdesign-uniapp-starter'
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: 小程序预览/上传
uses: novlan1/tencent-cos-and-cdn-action/mp-preview@master
with:
mini_app_id: ${{ secrets.TDESIGN_UNI_APP_ID }}
mini_app_private_key: ${{ secrets.TDESIGN_UNI_MINI_KEY }}
allowed_users: '{"novlan1":11,"anlyyao":12}'
cos_secret_id: ${{ secrets.TENCENT_COS_SECRET_ID }}
cos_secret_key: ${{ secrets.TENCENT_COS_SECRET_KEY }}
cos_bucket: mike-1255355338
cos_region: ap-guangzhou
cos_remote_path: tdesign-uniapp-starter/wx-mp-preview-qrcode.png
cdn_prefix: 'https://cdn.uwayfly.com/'
description_prefix: 'starter'