Skip to content

Commit

Permalink
conflicts solved, delete duplicated env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ail3ngrimaldi committed Jun 12, 2024
1 parent 5856cae commit 7e78070
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,24 @@ jobs:
file: cobalt-v0.19.2-x86_64-unknown-linux-gnu.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build site
- name: Generate _data/env.json
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
echo '{
"AIRTABLE_API_KEY": "${AIRTABLE_API_KEY}",
"AIRTABLE_BASE_ID": "${AIRTABLE_BASE_ID}",
"AIRTABLE_TABLE_ID": "${AIRTABLE_TABLE_ID}"
}' > _data/env.json
env:
AIRTABLE_API_KEY: ${{ vars.AIRTABLE_API_KEY }}
AIRTABLE_BASE_ID: ${{ vars.AIRTABLE_BASE_ID }}
AIRTABLE_TABLE_ID: ${{ vars.AIRTABLE_TABLE_ID }}

- name: Build site
run: |
tar xfv cobalt-*
rm -rf doc
./cobalt build
- name: Publish Cloudflare
uses: cloudflare/pages-action@v1
with:
Expand Down

0 comments on commit 7e78070

Please sign in to comment.