Skip to content

MPFlutter 2.0 发布 #119

MPFlutter 2.0 发布

MPFlutter 2.0 发布 #119

Workflow file for this run

name: cos_upload
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v2
with:
ref: master
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Build project
run: echo "export const baseUrl = 'https://mpflutter.com';" > docs/0-url.mdx && cd website && npm install && npm run build
- name: Upload COS
uses: zkqiang/[email protected]
with:
args: delete -r -f /zh/ && upload -r ./zh/ /zh/
secret_id: ${{ secrets.COS_SECRET_ID }}
secret_key: ${{ secrets.COS_SECRET_KEY }}
bucket: ${{ secrets.COS_BUCKET }}
region: ap-singapore