Skip to content

Commit

Permalink
conflict solved: index airtable vars, workflow airtable keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ail3ngrimaldi committed Jun 12, 2024
1 parent 7e78070 commit a7410f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ jobs:
run: |
tar xfv cobalt-*
rm -rf doc
sed -i 's/{AIRTABLE_API_KEY}/${AIRTABLE_API_KEY}/g' index.liquid
sed -i 's/{AIRTABLE_BASE_ID}/${AIRTABLE_BASE_ID}/g' index.liquid
sed -i 's/{AIRTABLE_TABLE_ID}/${AIRTABLE_TABLE_ID}/g' index.liquid
./cobalt build
env:
AIRTABLE_API_KEY: ${{ vars.AIRTABLE_API_KEY }}
AIRTABLE_BASE_ID: ${{ vars.AIRTABLE_BASE_ID }}
AIRTABLE_TABLE_ID: ${{ vars.AIRTABLE_TABLE_ID }}

- name: Publish Cloudflare
uses: cloudflare/pages-action@v1
Expand Down
1 change: 1 addition & 0 deletions index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ questionButtons.forEach(button => {
});
// Airtable Connection
const apiKeyAirtable = '{{ env.AIRTABLE_API_KEY }}';
const baseId = '{{ env.BASE_ID }}';
const table = '{{ env.TABLE_ID }}';
Expand Down

0 comments on commit a7410f6

Please sign in to comment.