Skip to content

Commit 233925e

Browse files
committed
[Misc] Fix GitHub actions deployment commands
1 parent b111c6e commit 233925e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,16 @@ jobs:
2626
npm i
2727
fi
2828
npm run build
29-
gh-release:
29+
gh-pages-deploy:
3030
if: github.event_name != 'pull_request'
3131
runs-on: ubuntu-latest
3232
steps:
3333
- uses: actions/checkout@v1
3434
- uses: actions/setup-node@v1
3535
with:
3636
node-version: "18.x"
37-
- uses: webfactory/[email protected]
38-
with:
39-
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
4037
- name: Release to GitHub Pages
4138
run: |
42-
git config --global user.email "[email protected]"
43-
git config --global user.name "gh-actions"
4439
cd website
4540
if [ -e yarn.lock ]; then
4641
yarn install --frozen-lockfile
@@ -49,4 +44,7 @@ jobs:
4944
else
5045
npm i
5146
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 }}

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"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"
99
},
1010
"license": "MIT",
1111
"dependencies": {

0 commit comments

Comments
 (0)