diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c9426afd..47c026f8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,18 +37,25 @@ jobs: with: python-version: '3.10' - # - name: Install dependencies - # run: | - # python -m pip install --upgrade pip - # pip install -r requirements.txt + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt - name: Build website - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "." + run: | + make -C . html - name: Upload HTML uses: actions/upload-artifact@v1 with: name: DocumentationHTML path: _build/html/ + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/master' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_build/html + # cname: ${{ env.DOMAIN # TODO: set this if you're using a custom domain.