File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - gh-pages
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout repository
13
+ uses : actions/checkout@v2
14
+
15
+ - name : Set up Node.js
16
+ uses : actions/setup-node@v2
17
+ with :
18
+ node-version : ' 14'
19
+
20
+ - name : Install dependencies
21
+ run : npm install
22
+
23
+ - name : Build the project
24
+ run : npm run build
25
+
26
+ - name : Deploy to GitHub Pages
27
+ uses : peaceiris/actions-gh-pages@v3
28
+ with :
29
+ github_token : ${{ secrets.GITHUB_TOKEN }}
30
+ publish_dir : ./out
31
+ publish_branch : gh-pages
Original file line number Diff line number Diff line change 3
3
"scripts" : {
4
4
"dev" : " next dev --turbo" ,
5
5
"build" : " next build" ,
6
- "deploy" : " next build && touch out/.nojekyll && git add out/ && git commit -m \" Deploy \" && git subtree push --prefix out origin gh-pages "
6
+ "deploy" : " next build && touch out/.nojekyll"
7
7
},
8
8
"dependencies" : {
9
9
"next" : " 15.0.1" ,
You can’t perform that action at this time.
0 commit comments