Skip to content

Commit e2f7b90

Browse files
authored
Update cd.yml
1 parent 4d96f35 commit e2f7b90

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/cd.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,25 @@ jobs:
2323
env:
2424
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
2525
- name: Upload GitHub Pages artifact
26-
uses: actions/upload-pages-artifact@v3.0.1
26+
uses: actions/upload-artifact@v4.6.2
2727
with:
28+
name: webpage
2829
path: public
30+
2931

3032
# Deploy
3133
deploy:
3234
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-
4335
runs-on: ubuntu-latest
4436
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+

0 commit comments

Comments
 (0)