Skip to content

Commit

Permalink
Merge pull request #150 from calvinatian/update-github-workflow
Browse files Browse the repository at this point in the history
Update workflow versions
  • Loading branch information
calvinatian authored Feb 3, 2025
2 parents ca9b5dd + cefb1a1 commit 578437c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/gatsby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Detect package manager
id: detect-package-manager
run: |
Expand All @@ -51,20 +51,20 @@ jobs:
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
id: pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v5
with:
# Automatically inject pathPrefix in your Gatsby configuration file.
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: gatsby
- name: Restore cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
public
Expand All @@ -79,7 +79,7 @@ jobs:
PREFIX_PATHS: 'true'
run: ${{ steps.detect-package-manager.outputs.manager }} run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./public

Expand All @@ -93,4 +93,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v4.2.0
with:
node-version: 18.12.0
node-version: 18
- uses: enriikke/gatsby-gh-pages-action@v2
with:
access-token: x-access-token:${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 578437c

Please sign in to comment.