Skip to content

Commit 97aea76

Browse files
authored
Update deploy-pages.yml
1 parent 3cadcf8 commit 97aea76

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,31 @@ on:
44
push:
55
branches: [ main ]
66

7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
712
jobs:
813
build:
914
runs-on: ubuntu-latest
10-
permissions:
11-
contents: read
12-
pages: write
13-
id-token: write
1415
steps:
1516
- name: Checkout repository
1617
uses: actions/checkout@v4
1718

1819
- name: Upload Pages artifact
19-
uses: actions/upload-artifact@v4
20+
uses: actions/upload-pages-artifact@v3
2021
with:
21-
name: pages
22-
path: html
22+
path: html # folder that contains index.html etc.
2323

2424
deploy:
2525
needs: build
2626
runs-on: ubuntu-latest
27-
permissions:
28-
pages: write
29-
id-token: write
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
3031
steps:
3132
- name: Deploy to GitHub Pages
32-
uses: actions/deploy-pages@v1
33+
id: deployment
34+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)