Update deploy-docs.yml

This commit is contained in:
Whale
2021-03-02 13:50:39 +08:00
committed by GitHub
parent 6e1f3e0406
commit 9b7802ac04

View File

@@ -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