Skip to content

fix: run build in hasura/ to create new tables (#1020) #4

fix: run build in hasura/ to create new tables (#1020)

fix: run build in hasura/ to create new tables (#1020) #4

Workflow file for this run

# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: deploy-hasura
env:
HASURA_GRAPHQL_ADMIN_SECRET: ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }}
HASURA_GRAPHQL_ENDPOINT: ${{ vars.HASURA_GRAPHQL_ENDPOINT }}
HASURA_GRAPHQL_DATABASE_URL: ${{ secrets.HASURA_GRAPHQL_DATABASE_URL }}
# Trigger the workflow when:
on:
# A push occurs to one of the matched branches.
push:
branches:
- main
paths:
- apps/hasura/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy-hasura:
# NOTE: This name appears in GitHub's Checks API.
name: deploy-hasura
environment: deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: "20.x"
- name: Build
run: pnpm build:hasura
- name: Deploy
run: pnpm deploy:hasura