Bump checkout version, add missing env var, update branch name, set p… #146
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: Gatsby Publish | |
on: | |
push: | |
branches: | |
- "main" | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
environment: | |
name: github-pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: set environment variables | |
uses: allenevans/[email protected] | |
with: | |
DB_PASS: ${{ secrets.DB_PASS }} | |
DB_USER: ${{ secrets.DB_USER }} | |
GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }} | |
HOST: ${{ secrets.HOST }} | |
GATSBY_ESRI_TOKEN: ${{ secrets.GATSBY_ESRI_TOKEN }} | |
GATSBY_AIRTABLE_API_KEY: ${{ secrets.GATSBY_AIRTABLE_API_KEY }} | |
GATSBY_AIRTABLE_API_BASE: ${{ secrets.GATSBY_AIRTABLE_API_BASE }} | |
- uses: actions/checkout@v4 | |
- uses: enriikke/gatsby-gh-pages-action@v2 | |
with: | |
access-token: x-access-token:${{ secrets.ACCESS_TOKEN }} | |
deploy-branch: gh-pages | |
gatsby-args: --prefix-paths |