Skip to content

Create Dockerfile

Create Dockerfile #3

Workflow file for this run

name: Publish Book To Server
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Build Book
run: mdbook build
- name: upload to qcloud
uses: TencentCloud/cos-action@v1
with:
secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }}
secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }}
cos_bucket: ${{ secrets.TENCENT_CLOUD_BUCKET }}
cos_region: ap-guangzhou
local_path: book
remote_path: /
clean: true