Skip to content

refactor: docusaurus 重构 (#118) #155

refactor: docusaurus 重构 (#118)

refactor: docusaurus 重构 (#118) #155

Workflow file for this run

name: Build and deploy
on:
workflow_dispatch: {}
push:
branches:
- master
jobs:
deploy:
if: startsWith(github.event.head_commit.message, '[CI skip]') == false
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@master
- name: Upload pages to COS
uses: TencentCloud/cos-action@v1
with:
secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }}
secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }}
cos_bucket: ${{ secrets.COS_BUCKET }}
cos_region: ${{ secrets.COS_REGION }}
local_path: pages
remote_path: minecraft/plugin/slimefun/wiki/slimefun/pages
clean: true
- name: Upload images to COS
uses: TencentCloud/cos-action@v1
with:
secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }}
secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }}
cos_bucket: ${{ secrets.COS_BUCKET }}
cos_region: ${{ secrets.COS_REGION }}
local_path: images
remote_path: minecraft/plugin/slimefun/wiki/slimefun/images
clean: true