File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -34,31 +34,31 @@ jobs:
34
34
- name : Install dependencies
35
35
run : yarn install
36
36
37
- - name : Test build website
37
+ - name : Build website in staging confuguration
38
38
run : yarn build-staging
39
39
40
40
- name : Upload Build Artifact
41
- uses : actions/upload-artifact@v4
41
+ id : deployment
42
+ uses : actions/upload-pages-artifact@v3
42
43
with :
43
- name : gh-pages-depl-payload
44
- path : $BUILD_DIR
44
+ path : ./build
45
45
46
46
deploy :
47
47
name : Deploy to GitHub Pages
48
48
needs : build-staging
49
49
runs-on : ubuntu-latest
50
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
51
+ permissions :
52
+ pages : write # to deploy to Pages
53
+ id-token : write # to verify the deployment originates from an appropriate source
54
+ environment :
55
+ name : github-pages
56
+ url : ${{ steps.deployment.outputs.page_url }}
50
57
steps :
51
- - uses : actions/download-artifact@master
52
- with :
53
- name : gh-pages-depl-payload
54
- path : $BUILD_DIR
58
+ - name : Deploy to GitHub Pages
59
+ id : deployment
60
+ uses : actions/deploy-pages@v4
55
61
56
- - name : Deploy to GitHub Pages
57
- uses : peaceiris/actions-gh-pages@v3
58
- with :
59
- github_token : ${{ secrets.GITHUB_TOKEN }}
60
- publish_dir : $BUILD_DIR
61
-
62
- - name : Wait some time to make sure deployment is finished
63
- run : |
64
- sleep 60
62
+ - name : Wait some time to make sure deployment is finished
63
+ run : |
64
+ sleep 60
You can’t perform that action at this time.
0 commit comments