Skip to content

Commit e9416be

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

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/update-doc.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ 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
@@ -27,19 +32,15 @@ jobs:
2732
working-directory: ./Doc
2833

2934
- name: Upload artifact
30-
uses: actions/upload-pages-artifact@v3
35+
uses: actions/upload-pages-artifact@v2
3136
with:
32-
path: ./site
37+
path: ./Doc/site
3338

3439
deploy:
3540
needs: build
3641
runs-on: ubuntu-latest
3742
environment:
3843
name: github-pages
39-
url: ${{ steps.deployment.outputs.page_url }}
40-
permissions:
41-
id-token: write
42-
contents: write
4344
steps:
4445
- name: Deploy to GitHub Pages
4546
id: deployment

0 commit comments

Comments
 (0)