Deploy to GitHub pages?

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-07-26 00:22:59 +02:00
parent f9f6e79a3a
commit e731a38f6d

View file

@ -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