Merge pull request #24 from umd-mith/full-typescript #39
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: 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 }} | ||
typescript-check: | ||
uses: ./.github/workflows/run-typescript.yml | ||
Check failure on line 16 in .github/workflows/staging.yml GitHub Actions / .github/workflows/staging.ymlInvalid workflow file
|
||
build: | ||
needs: [test, typescript-check] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
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 |