File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,28 @@ jobs:
30
30
run : npm run build --if-present
31
31
32
32
- name : Upload artifact
33
- uses : actions/upload-artifact@v3
33
+ uses : actions/upload-pages- artifact@v3
34
34
with :
35
- name : github-pages
36
35
path : ./dist
37
36
37
+ # Deploy job
38
38
deploy :
39
+ # Add a dependency to the build job
39
40
needs : build
40
- runs-on : ubuntu-latest
41
+
42
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
43
+ permissions :
44
+ pages : write # to deploy to Pages
45
+ id-token : write # to verify the deployment originates from an appropriate source
46
+
47
+ # Deploy to the github-pages environment
41
48
environment :
42
49
name : github-pages
43
50
url : ${{ steps.deployment.outputs.page_url }}
51
+
52
+ # Specify runner + deployment step
53
+ runs-on : ubuntu-latest
44
54
steps :
45
55
- name : Deploy to GitHub Pages
46
56
id : deployment
47
- uses : actions/deploy-pages@v2
57
+ uses : actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
You can’t perform that action at this time.
0 commit comments