From 1c157797bdbbdb4920d86f99f1e1e9d36de8147a Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Sat, 27 Jul 2024 13:56:29 +0100 Subject: [PATCH] [ci] Add deploy job to github actions --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e0ac3f1..3aa0505a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,3 +40,20 @@ jobs: uses: actions/upload-pages-artifact@v3 with: path: ./output + + deploy: + if: github.ref == 'refs/heads/master' + permissions: + contents: read + pages: write + id-token: write + + runs-on: ubuntu-latest + needs: build + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + steps: + - name: Deploy artifact + id: deployment + uses: actions/deploy-pages@v4