Skip to content

Commit b5c3b59

Browse files
Update update-doc.yml
1 parent e9416be commit b5c3b59

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/update-doc.yml

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

7-
permissions:
8-
contents: read
9-
pages: write
10-
id-token: write
11-
127
jobs:
138
build:
149
runs-on: ubuntu-latest
@@ -32,7 +27,7 @@ jobs:
3227
working-directory: ./Doc
3328

3429
- name: Upload artifact
35-
uses: actions/upload-pages-artifact@v2
30+
uses: actions/upload-pages-artifact@v3
3631
with:
3732
path: ./Doc/site
3833

@@ -41,7 +36,11 @@ jobs:
4136
runs-on: ubuntu-latest
4237
environment:
4338
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
permissions:
41+
id-token: write
42+
contents: write
4443
steps:
4544
- name: Deploy to GitHub Pages
4645
id: deployment
47-
uses: actions/deploy-pages@v3
46+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)