Create deploy-docs.yml

This commit is contained in:
Whale
2021-03-02 13:37:07 +08:00
committed by GitHub
parent 957c69bd1e
commit f1cefad910

22
.github/workflows/deploy-docs.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- master
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: docs-v2.zhamao.me
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base