mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-15 01:40:54 +08:00
20 lines
397 B
YAML
20 lines
397 B
YAML
name: Publish docs via GitHub Pages
|
|
|
|
on:
|
|
release:
|
|
types: [ published ]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.x
|
|
- run: cd docs/ && pip install -r requirements.txt
|
|
- run: cd docs/ && mkdocs gh-deploy --force
|
|
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|