Update package.json #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Gatsby site | |
on: | |
push: | |
branches: | |
- "master" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18" | |
- name: Install Dependencies | |
run: npm install --legacy-peer-deps | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v3 | |
with: | |
static_site_generator: gatsby | |
- name: Restore cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
public | |
.cache | |
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }} | |
restore-keys: | | |
${{ runner.os }}-gatsby-build- | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: public | |
path: ./public |