From d820de724c24089c374a59534ba36388cfde3fe3 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Wed, 2 Sep 2020 18:21:57 +0530 Subject: [PATCH] Publish documentation with GitHub Pages --- .github/workflows/docs-deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/docs-deploy.yml diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml new file mode 100644 index 000000000..598ad3842 --- /dev/null +++ b/.github/workflows/docs-deploy.yml @@ -0,0 +1,26 @@ +name: Deploy Documentation +on: + push: + branches: [master] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + + - name: Install dependencies + run: | + pip install nox + npm install + + - name: Generate documentation + run: nox -s docs + + - name: Upload to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build/docs/