Skip to content

Commit 2453c46

Browse files
authored
Merge pull request #3 from calimania/feat/deploying-by-action
Fixing deploy action
2 parents 3b6b8c7 + f55047f commit 2453c46

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: npm run build
3737

3838
- name: Upload artifact
39-
uses: actions/upload-pages-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
with:
4141
name: github-pages-${{ github.run_id }}
4242
path: ./build
@@ -46,8 +46,11 @@ jobs:
4646
needs: build
4747
runs-on: ubuntu-latest
4848
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
49+
permissions:
50+
pages: write # to deploy to Pages
51+
id-token: write # to verify the deployment originates from an appropriate source
4952
environment:
50-
name: github-pages
53+
name: github-pages-${{ github.run_id }}
5154
url: ${{ steps.deployment.outputs.page_url }}
5255
steps:
5356
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)