更新赞助者。 #117
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: 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 |