Skip to content

Commit

Permalink
use Gatsby Publish github action (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJuanAndOnly99 authored Dec 20, 2024
1 parent 7b77955 commit 629ed54
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
schedule:
- cron: '0 */3 * * *'
- cron: "0 */3 * * *"

jobs:
build:
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
node-version: "${{ matrix.node-version }}"

- name: Build
run: |
Expand All @@ -35,8 +35,7 @@ jobs:
run: cp CNAME dist

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

0 comments on commit 629ed54

Please sign in to comment.