From fc6d2a8df99ff47ac9d6a6acdfb4b80735893717 Mon Sep 17 00:00:00 2001 From: Jean Ribeiro Date: Mon, 11 Mar 2024 20:05:17 -0300 Subject: [PATCH] chore: adds production & staging key for Transak in build action (#2111) --- .github/workflows/reusable_build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable_build.yml b/.github/workflows/reusable_build.yml index d6b1f4bb98..6a5b899e05 100644 --- a/.github/workflows/reusable_build.yml +++ b/.github/workflows/reusable_build.yml @@ -117,6 +117,14 @@ jobs: run: echo "DEBUG=electron-builder" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append if: inputs.os == 'windows-2022' + - name: Set Transak API key + run: | + if [ "${{ inputs.stage }}" = "prod" ]; then + echo "TRANSAK_API_KEY=${{ secrets.TRANSAK_API_KEY_PRODUCTION }}" >> $GITHUB_ENV + else + echo "TRANSAK_API_KEY=${{ secrets.TRANSAK_API_KEY_STAGING }}" >> $GITHUB_ENV + fi + - name: Set up .npmrc file to use GitHub Packages run: | echo "@bloomwalletio:registry=https://npm.pkg.github.com/" >> .npmrc @@ -137,7 +145,6 @@ jobs: env: HARDCODE_NODE_ENV: true AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }} - TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }} - name: Build signed Electron app (MacOS) run: yarn compile:${STAGE}:mac