diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fcc2bfc..86693c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/index.liquid b/index.liquid index 2b56c6e..5ce1249 100644 --- a/index.liquid +++ b/index.liquid @@ -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 }}';