Skip to content

Fix dependencies between workflows #31

Fix dependencies between workflows

Fix dependencies between workflows #31

Workflow file for this run

name: Publish Staging Site on GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/run-tests.yml
secrets:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- name: npm install and build and deploy
env:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
AIRTABLE_PEOPLE_BASE_ID: appk2btw36qEO3vFo
AIRTABLE_RESEARCH_BASE_ID: appTv9J1zxqaNgBHi
AIRTABLE_EVENTS_BASE_ID: tbl6CURONRn8ML6le
AIRTABLE_POSTS_BASE_ID: appsY0VXF7pbv3mKR
AIRTABLE_MITH_BASE_ID: appMWsw8HKjjokBg2
run: |
npm install
npm run build-pages
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public