Skip to content

Publish

Publish #212

Workflow file for this run

name: Publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '15'
- name: Gatsby Publish
uses: enriikke/[email protected]
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
deploy-branch: gh-pages
gatsby-args: --prefix-paths
env:
NODE_ENV: production
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }}
AIRTABLE_META_BASE_ID: ${{ secrets.AIRTABLE_META_BASE_ID }}
SITE_URL: ${{ secrets.SITE_URL }}
PATH_PREFIX: ${{ secrets.PATH_PREFIX }}