Skip to content

Commit

Permalink
generate env.json for en and es (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
ail3ngrimaldi authored Aug 13, 2024
1 parent 05983d0 commit b376f63
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,27 @@ jobs:
file: cobalt-v0.19.2-x86_64-unknown-linux-gnu.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate _data/env.json
- name: Generate _data/env.json for Spanish
run: |
mkdir -p es/_data
echo '{
"AIRTABLE_API_KEY": "${AIRTABLE_API_KEY}",
"AIRTABLE_BASE_ID": "${AIRTABLE_BASE_ID}",
"AIRTABLE_TABLE_ID": "${AIRTABLE_TABLE_ID}"
}' > _data/env.json
}' > es/_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: Generate _data/env.json for English
run: |
mkdir -p en/_data
echo '{
"AIRTABLE_API_KEY": "${AIRTABLE_API_KEY}",
"AIRTABLE_BASE_ID": "${AIRTABLE_BASE_ID}",
"AIRTABLE_TABLE_ID": "${AIRTABLE_TABLE_ID}"
}' > en/_data/env.json
env:
AIRTABLE_API_KEY: ${{ vars.AIRTABLE_API_KEY }}
AIRTABLE_BASE_ID: ${{ vars.AIRTABLE_BASE_ID }}
Expand Down

0 comments on commit b376f63

Please sign in to comment.