File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -26,21 +26,16 @@ jobs:
26
26
npm i
27
27
fi
28
28
npm run build
29
- gh-release :
29
+ gh-pages-deploy :
30
30
if : github.event_name != 'pull_request'
31
31
runs-on : ubuntu-latest
32
32
steps :
33
33
- uses : actions/checkout@v1
34
34
- uses : actions/setup-node@v1
35
35
with :
36
36
node-version : " 18.x"
37
- -
uses :
webfactory/[email protected]
38
- with :
39
- ssh-private-key : ${{ secrets.GH_PAGES_DEPLOY }}
40
37
- name : Release to GitHub Pages
41
38
run : |
42
- git config --global user.email "[email protected] "
43
- git config --global user.name "gh-actions"
44
39
cd website
45
40
if [ -e yarn.lock ]; then
46
41
yarn install --frozen-lockfile
49
44
else
50
45
npm i
51
46
fi
52
- npm run deploy
47
+ git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
48
+ npm run deploy -- -u "github-actions-bot <[email protected] >"
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"dev" : " next dev" ,
7
7
"build" : " next build" ,
8
- "deploy" : " next build && touch out/.nojekyll && gh-pages -d out -m \" Deploy to GitHub Pages\" -t true"
8
+ "deploy" : " next build && gh-pages -d out -m \" Deploy to GitHub Pages\" -t true"
9
9
},
10
10
"license" : " MIT" ,
11
11
"dependencies" : {
You can’t perform that action at this time.
0 commit comments