docs: 添加Ryken自定义附属 (#105) #142
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: 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 |