Skip to content

update config

update config #3

Workflow file for this run

name: Deploy site
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@v4
with:
static_site_generator: next
- uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/.yarn/cache
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-nodemodules
- name: build
run: yarn build-static
env:
NODE_ENV: production
NEXT_PUBLIC_AIRTABLE_API_KEY: ${{ secrets.NEXT_PUBLIC_AIRTABLE_API_KEY }}
NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM: ${{ secrets.NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM }}
NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM: ${{ secrets.NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM }}
- 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