Skip to content

Commit

Permalink
replacekeys
Browse files Browse the repository at this point in the history
  • Loading branch information
ail3ngrimaldi committed Jun 12, 2024
1 parent 91fd7e0 commit 84711b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 84711b6

Please sign in to comment.