File tree Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Page Build
2
2
3
3
on : [push]
4
4
5
+ # Allow one concurrent deployment
5
6
concurrency :
6
7
group : " pages"
7
8
cancel-in-progress : true
@@ -41,26 +42,10 @@ jobs:
41
42
-e twitter.com \
42
43
"
43
44
44
- - name : Upload artifacts
45
- uses : actions/upload-pages-artifact@v3
45
+ - name : Deploy
46
+ uses : peaceiris/actions-gh-pages@v4
46
47
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
47
48
with :
48
- path : ./public
49
-
50
- deploy :
51
- needs : build
52
-
53
- permissions :
54
- id-token : write
55
- pages : write
56
-
57
- environment :
58
- name : github-pages
59
- url : ${{ steps.deployment.outputs.page_url }}
60
-
61
- runs-on : ubuntu-latest
62
- steps :
63
- - name : Deploy artifacts
64
- uses : actions/deploy-pages@v4
65
- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
66
- id : deployment
49
+ deploy_key : ${{ secrets.GITHUB_TOKEN }}
50
+ publish_dir : ./public
51
+ publish_branch : gh-pages # deploying branch
You can’t perform that action at this time.
0 commit comments