From 8ffd09b2953cbc4283d1d5e604a2387be870705a Mon Sep 17 00:00:00 2001 From: kindxiaoming Date: Sat, 27 Apr 2024 17:50:15 -0400 Subject: [PATCH] add workflow --- .github/workflows/docs.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..1416b750 --- /dev/null +++ b/.github/workflows/docs.yml @@ -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/