From 5136c769a6dd4ffaadd5304e5c5c27b0df215e42 Mon Sep 17 00:00:00 2001 From: Nikhil Woodruff Date: Tue, 28 Jan 2025 18:27:26 +1100 Subject: [PATCH] Add publish step back in --- .github/workflows/any_changes.yaml | 4 +++- .github/workflows/publish.yaml | 14 +++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) 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