Skip to content

Commit 7495229

Browse files
authored
patch: Fix deploy.yaml (#6)
Adding permissions
1 parent 0788f70 commit 7495229

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/deploy.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ on:
55
- master
66
permissions:
77
contents: write
8+
9+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
10+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
14+
815
jobs:
9-
deploy:
10-
environment:
11-
name: github-pages
12-
url: ${{ steps.deployment.outputs.page_url }}
16+
build:
1317
runs-on: ubuntu-latest
1418
steps:
1519
- name: Checkout
@@ -32,6 +36,16 @@ jobs:
3236
with:
3337
# 👇 Build output path
3438
path: build
39+
40+
deploy:
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
runs-on: ubuntu-latest
45+
permissions:
46+
id-token: write
47+
pages: write
48+
steps:
3549
- name: Deploy to GitHub Pages
3650
id: deployment
3751
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)