Skip to content

chore: switch to simple splat redirect for blog #602

chore: switch to simple splat redirect for blog

chore: switch to simple splat redirect for blog #602

Workflow file for this run

name: Smoketest
on:
push:
pull_request:
workflow_dispatch:
env:
NODE_VERSION: 20.x
jobs:
formatting:
runs-on: ubuntu-latest
name: Verify formatting
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Verify formatting
run: yarn format:check
build:
name: Build site
runs-on: ubuntu-latest
needs: [formatting]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Restore Gatsby build output
uses: actions/cache@v3
id: gatsbyOut
with:
path: ./public
key: ${{ runner.os }}-gatsby-out-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-gatsby-out-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-gatsby-out-${{ secrets.CACHE_VERSION }}-
- name: Build site
run: yarn build:ci