Skip to content

fix link

fix link #11

Workflow file for this run

name: publish
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
ci:
uses: ./.github/workflows/_ci.yml
build:
runs-on: ubuntu-latest
needs: ci
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
with:
# Automatically inject basePath in next.config.js
static_site_generator: next
- name: Get yarn cache directory path
id: yarn-cache-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache
with:
path: |
${{ github.workspace }}/node_modules
${{ steps.yarn-cache-path.outputs.dir }}
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-
- name: build
run: yarn build
env:
NODE_ENV: production
NEXT_PUBLIC_AIRTABLE_PAT: ${{ secrets.NEXT_PUBLIC_AIRTABLE_PAT }}
NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM: ${{ secrets.NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM }}
NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM: ${{ secrets.NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM }}
NEXT_PUBLIC_JSONLINK_API_KEY: ${{secrets.NEXT_PUBLIC_JSONLINK_API_KEY}}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4