From 7baf11b2f30e39d7e1be941715e81bc43135f885 Mon Sep 17 00:00:00 2001 From: George Stagg Date: Thu, 8 Aug 2024 14:18:28 +0100 Subject: [PATCH] Switch to GitHub Pages for documentation --- .github/workflows/deploy.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5380c2f..41c7d20 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,14 +5,11 @@ on: name: Render and Publish jobs: - build-deploy: + build: runs-on: ubuntu-latest permissions: contents: write pages: write - # environment: - # name: github-pages - # url: ${{ steps.deployment.outputs.page_url }} steps: - name: Check out repository uses: actions/checkout@v4 @@ -40,13 +37,19 @@ jobs: uses: quarto-dev/quarto-actions/render@v2 with: path: docs - # - name: Deploy to GitHub Pages - # id: deployment - # uses: actions/deploy-pages@v4 - - name: Deploy to Netlify - run: | - netlify deploy \ - --prod \ - --dir docs/_site \ - --site ${{ secrets.NETLIFY_SITE }} \ - --auth ${{ secrets.NETLIFY_TOKEN }} + - name: Upload Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: docs/_site + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + pages: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4