From f8b7347b625d100deb350a045573eb36fdcb8c5c Mon Sep 17 00:00:00 2001 From: Arnau Casau <47946624+arnaucasau@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:19:16 +0100 Subject: [PATCH] Deploy website using GitHub actions (#577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Summary Deployment of the website using GitHub actions instead of the old method with a dedicated branch. Co-authored-by: Frank Harkins <36071638+frankharkins@users.noreply.github.com> --- .github/workflows/deploy-website.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index bc0563ef19..9424a02377 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -7,8 +7,8 @@ on: workflow_dispatch: jobs: - docs_publish: - name: Build and publish + build_site: + name: Build Website concurrency: ci-${{ github.ref }} runs-on: ubuntu-latest steps: @@ -20,9 +20,25 @@ jobs: python-version: '3.9' - name: Install tox run: python -m pip install -U tox - - name: Build Website + - name: Build run: tox -e website - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4 + - name: Upload Artifacts + uses: actions/upload-pages-artifact@v2 with: - folder: website/ + path: 'website/' + deploy: + needs: build_site + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@v2