From 629ed5415aa6e921830c736a99546541f5e815cd Mon Sep 17 00:00:00 2001 From: Juan Estrella Date: Fri, 20 Dec 2024 12:30:14 +0100 Subject: [PATCH] use Gatsby Publish github action (#232) --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89cacc510d0..a8339a2214e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ on: branches: - main schedule: - - cron: '0 */3 * * *' + - cron: "0 */3 * * *" jobs: build: @@ -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: | @@ -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'