From e731a38f6d20f81451a36f453fa863d29596ef1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 26 Jul 2024 00:22:59 +0200 Subject: [PATCH] Deploy to GitHub pages? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .github/workflows/pl-fe.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/pl-fe.yaml b/.github/workflows/pl-fe.yaml index 1719cfcd1..f12792e24 100644 --- a/.github/workflows/pl-fe.yaml +++ b/.github/workflows/pl-fe.yaml @@ -50,3 +50,28 @@ jobs: with: name: pl-fe path: dist + + - name: Upload Github Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + name: github-pages + path: dist + + deploy: + needs: build + if: github.ref == 'refs/heads/fork' + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 +