From b376f63c2a2f0a1a40a2893586d0d689db248e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ail=C3=A9n=20Grimaldi?= <63558201+ail3ngrimaldi@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:59:06 -0300 Subject: [PATCH] generate env.json for en and es (#167) --- .github/workflows/main.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fcc2bfc..839d2d5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}