Deploy to GitHub pages?
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
f9f6e79a3a
commit
e731a38f6d
1 changed files with 25 additions and 0 deletions
25
.github/workflows/pl-fe.yaml
vendored
25
.github/workflows/pl-fe.yaml
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue