Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KindXiaoming committed Apr 27, 2024
1 parent 2ba1508 commit 8ffd09b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: docs
on:
push:
branches:
- master

jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install requirements
run: |
pip3 install sphinx-rtd-theme
- name: Build docs
run: |
cd docs
make html
# https://github.com/peaceiris/actions-gh-pages
- name: Deploy
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/

0 comments on commit 8ffd09b

Please sign in to comment.