File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,13 @@ name: Publish GitHub Pages
3
3
# Controls when the action will run.
4
4
on :
5
5
workflow_dispatch :
6
+ secrets :
7
+ TOKEN :
8
+ required : true
6
9
workflow_call :
10
+ secrets :
11
+ TOKEN :
12
+ required : true
7
13
8
14
permissions :
9
15
contents : read
51
57
# Upload dist repository
52
58
path : ' ./public'
53
59
54
- - name : Deploy to GitHub Pages
55
- id : deployment
56
- uses : actions/deploy-pages@v4
60
+ - name : Push
61
+ uses : peaceiris/actions-gh-pages@v4
62
+ with :
63
+ github_token : ${{ secrets.TOKEN }}
64
+ publish_branch : master
65
+ force_orphan : true
66
+ publish_dir : ./public
67
+ cname : liudon.com
Original file line number Diff line number Diff line change 51
51
github_pages :
52
52
name : Build and Publish Github Pages
53
53
uses : ./.github/workflows/gh-pages.yml
54
+ secrets :
55
+ TOKEN : ${{ secrets.TOKEN }}
54
56
needs :
55
57
- start
56
58
You can’t perform that action at this time.
0 commit comments