Skip to content

Commit

Permalink
Bump checkout version, add missing env var, update branch name, set p…
Browse files Browse the repository at this point in the history
…ermissions and environment
  • Loading branch information
anaximander committed Mar 26, 2024
1 parent ba0ecfe commit ed6321f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ name: Gatsby Publish
on:
push:
branches:
- master
- "main"

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
environment:
name: github-pages
runs-on: ubuntu-latest
steps:
- name: set environment variables
Expand All @@ -16,9 +23,10 @@ jobs:
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@v2
- uses: actions/checkout@v4
- uses: enriikke/gatsby-gh-pages-action@v2
with:
access-token: x-access-token:${{ secrets.ACCESS_TOKEN }}
Expand Down

0 comments on commit ed6321f

Please sign in to comment.