diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6ea924d6..a0ee11c8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,6 +40,14 @@ jobs: - name: Build the book run: | jupyter-book build . + + # Push the book's HTML to github-pages + - name: GitHub Pages action + uses: peaceiris/actions-gh-pages@v4 + if: ${{ github.ref == 'refs/heads/main' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_build/html # Push to CS server - name: rsync and ssh to CS