Skip to content

Commit

Permalink
improved actions
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi committed Jul 9, 2024
1 parent f34d984 commit acc2c9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build and Site
name: Build and Publish Site

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-and-deploy:
Expand All @@ -18,6 +16,14 @@ jobs:

- name: Setup Node.js
uses: actions/setup-node@v3
env:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_API_KEY }}
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

with:
node-version: '20.x'

Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@ name: Publish Staging Site on GitHub Pages
on:
push:
branches:
- master
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: SpicyPizza/[email protected]
with:
envkey_AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_API_KEY }}
envkey_AIRTABLE_PEOPLE_BASE_ID: appk2btw36qEO3vFo
envkey_AIRTABLE_RESEARCH_BASE_ID: appTv9J1zxqaNgBHi
envkey_AIRTABLE_EVENTS_BASE_ID: tbl6CURONRn8ML6le
envkey_AIRTABLE_POSTS_BASE_ID: appsY0VXF7pbv3mKR
envkey_AIRTABLE_MITH_BASE_ID: appMWsw8HKjjokBg2
- uses: actions/setup-node@v3
env:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_API_KEY }}
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
with:
node-version: 16.x
node-version: 20.x
- name: npm install and build and deploy
run: |
npm install
Expand Down

0 comments on commit acc2c9b

Please sign in to comment.