From 84711b664569960e41a5fa816555980efd5a8f9a Mon Sep 17 00:00:00 2001 From: ail3n Date: Wed, 5 Jun 2024 19:57:25 -0300 Subject: [PATCH] replacekeys --- .github/workflows/main.yml | 7 +++++++ index.liquid | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f781e2c..3620f95 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,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 c78674c..1fad12c 100644 --- a/index.liquid +++ b/index.liquid @@ -205,9 +205,9 @@ questionButtons.forEach(button => { }); // Airtable Connection -const apiKeyAirtable = 'patNjZOfZHaFA6kkK.02d83b2cd73c1d2bd0e2ea8688f4fa29e6d640576d3125bb92e10f78e9cb830c'; //Do not upload like this! -const baseId = 'app8afdeP1SxSAkKO'; -const table = 'tblsK7cdnFr55xP7W'; +const apiKeyAirtable = '{AIRTABLE_API_KEY}'; +const baseId = '{AIRTABLE_BASE_ID}'; +const table = '{AIRTABLE_TABLE_ID}'; const mailForm = document.getElementById('mail-form'); const mailButton = document.getElementById('mail-button');