diff --git a/.github/workflows/any_changes.yaml b/.github/workflows/any_changes.yaml index f45934f3..a5fd756a 100644 --- a/.github/workflows/any_changes.yaml +++ b/.github/workflows/any_changes.yaml @@ -23,4 +23,6 @@ jobs: run: make install - name: Test documentation builds - run: make documentation \ No newline at end of file + run: make documentation + env: + HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 661a042f..11ba63d5 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -26,4 +26,16 @@ jobs: with: user: __token__ password: ${{ secrets.PYPI }} - skip-existing: true \ No newline at end of file + skip-existing: true + + - name: Test documentation builds + run: make documentation + env: + HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }} + + - name: Deploy documentation + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: docs/_build/html # The folder the action should deploy. \ No newline at end of file