Skip to content

Commit

Permalink
chore(build): update how use secrets in bash commands
Browse files Browse the repository at this point in the history
  • Loading branch information
KatoakDR committed Oct 17, 2023
1 parent ef3efbb commit 746731f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,18 @@ jobs:
cache-dependency-path: yarn.lock

- name: Create .env file from GitHub Secrets
env:
SENTRY_INGEST_DOMAIN: ${{ secrets.SENTRY_INGEST_DOMAIN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_ORG: ${{ github.repository_owner }}
SENTRY_PROJECT: ${{ github.event.repository.name }}
run: |
echo "SENTRY_INGEST_DOMAIN=${{ secrets.SENTRY_INGEST_DOMAIN }}" >> .env
echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> .env
echo "SENTRY_DSN=${{ secrets.SENTRY_DSN }}" >> .env
echo "SENTRY_ORG=${{ github.repository_owner }}" >> .env
echo "SENTRY_PROJECT=${{ github.event.repository.name }}" >> .env
echo "SENTRY_INGEST_DOMAIN=${SENTRY_INGEST_DOMAIN}" >> .env
echo "SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}" >> .env
echo "SENTRY_DSN=${SENTRY_DSN}" >> .env
echo "SENTRY_ORG=${SENTRY_ORG}" >> .env
echo "SENTRY_PROJECT=${SENTRY_PROJECT}" >> .env
# https://docs.sentry.io/platforms/javascript/guides/electron/configuration/tree-shaking/
echo "__SENTRY_DEBUG__=false" >> .env
Expand Down

0 comments on commit 746731f

Please sign in to comment.