From 5b5b58361bd40b8079854f365d0e44a4fb04b174 Mon Sep 17 00:00:00 2001 From: daviddesancho Date: Sun, 17 Nov 2024 21:58:02 +0100 Subject: [PATCH] changes last bit of workflow --- .github/workflows/gh-deploy.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 58b25a1..35efd52 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -48,13 +48,21 @@ jobs: run: | jupyter-book build . - # Upload the book's HTML as an artifact - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + + - name: Push html to github-pages + uses: peaceiris/actions-gh-pages@v3.9.0 with: - path: "_build/html" + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_build/html + force_orphan: true - # Deploy the book's HTML to GitHub Pages - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 +# # Upload the book's HTML as an artifact +# - name: Upload artifact +# uses: actions/upload-pages-artifact@v2 +# with: +# path: "_build/html" +# +# # Deploy the book's HTML to GitHub Pages +# - name: Deploy to GitHub Pages +# id: deployment +# uses: actions/deploy-pages@v2