Skip to content

Commit dedb9c4

Browse files
use Gatsby Publish github action
1 parent 7b77955 commit dedb9c4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- main
88
schedule:
9-
- cron: '0 */3 * * *'
9+
- cron: "0 */3 * * *"
1010

1111
jobs:
1212
build:
@@ -22,7 +22,7 @@ jobs:
2222
- name: Use Node.js ${{ matrix.node-version }}
2323
uses: actions/setup-node@v4
2424
with:
25-
node-version: '${{ matrix.node-version }}'
25+
node-version: "${{ matrix.node-version }}"
2626

2727
- name: Build
2828
run: |
@@ -35,8 +35,7 @@ jobs:
3535
run: cp CNAME dist
3636

3737
- name: Deploy to GitHub Pages
38-
uses: peaceiris/actions-gh-pages@v4
38+
uses: enriikke/gatsby-gh-pages-action@v2
3939
with:
40-
github_token: ${{ secrets.ACCESS_TOKEN }}
41-
publish_dir: public
40+
access-token: ${{ secrets.ACCESS_TOKEN }}
4241
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)