mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
Update deploy-docs.yml
This commit is contained in:
24
.github/workflows/deploy-docs.yml
vendored
24
.github/workflows/deploy-docs.yml
vendored
@@ -1,23 +1,15 @@
|
|||||||
name: Publish docs via GitHub Pages
|
name: ci
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
deploy:
|
||||||
name: Deploy docs
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
- name: Deploy docs
|
python-version: 3.x
|
||||||
uses: mhausenblas/mkdocs-deploy-gh-pages@master
|
- run: pip install mkdocs-material
|
||||||
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
|
- run: mkdocs build -d distribute && git init && git add -A && git commit -m 'deploy' && git push -f https://github.com/zhamao-robot/docs-v2-pages.git master
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GITHUB_REPOSITORY: zhamao-robot/docs-v2-pages
|
|
||||||
CUSTOM_DOMAIN: docs-v2.zhamao.me
|
|
||||||
CONFIG_FILE: mkdocs.yml
|
|
||||||
EXTRA_PACKAGES: build-base
|
|
||||||
|
|||||||
Reference in New Issue
Block a user