Skip to content

Commit

Permalink
chore: adds production & staging key for Transak in build action (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeanribeiro authored Mar 11, 2024
1 parent 357c6c7 commit fc6d2a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fc6d2a8

Please sign in to comment.