File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -23,26 +23,25 @@ jobs:
23
23
env :
24
24
CONTENTFUL_ACCESS_TOKEN : ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
25
25
- name : Upload GitHub Pages artifact
26
- uses : actions/upload-pages- artifact@v3.0.1
26
+ uses : actions/upload-artifact@v4.6.2
27
27
with :
28
+ name : webpage
28
29
path : public
30
+
29
31
30
32
# Deploy
31
33
deploy :
32
34
needs : build
33
-
34
- environment :
35
- name : github-pages
36
- url : ${{ steps.deployment.outputs.page_url }}
37
-
38
- # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
39
- permissions :
40
- pages : write # to deploy to Pages
41
- id-token : write # to verify the deployment originates from an appropriate source
42
-
43
35
runs-on : ubuntu-latest
44
36
steps :
45
- - name : Configure GitHub Pages
46
- uses : actions/configure-pages@v5.0.0
47
- - name : Deploy GitHub Pages site
48
- uses : actions/deploy-pages@v4.0.5
37
+ - name : Download a Build Artifact
38
+ uses : actions/download-artifact@v4.2.1
39
+ with :
40
+ name : webpage
41
+ path : public
42
+ - name : Push to GitHub Pages branch
43
+ uses : ftnext/action-push-ghpages@v1.0.0
44
+ with :
45
+ build_dir : public
46
+ github_token : ${{ secrets.GITHUB_TOKEN }}
47
+
You can’t perform that action at this time.
0 commit comments