Skip to content

Commit cfd0a9f

Browse files
committed
Update deploy workflow to use upload-pages-artifact
1 parent f7e40c7 commit cfd0a9f

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
jobs:
9-
build-and-deploy:
9+
build:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -27,9 +27,18 @@ jobs:
2727
- name: Add CNAME file
2828
run: echo "opencollaboration.dev" > build/CNAME
2929

30-
- name: Deploy to GitHub Pages
31-
uses: peaceiris/actions-gh-pages@v3
30+
- name: Upload Pages artifact
31+
uses: actions/upload-pages-artifact@v3
3232
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./build
35-
publish_branch: gh-pages
33+
path: build
34+
35+
deploy:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)