Skip to content

Commit

Permalink
feat: prepare CI to consume dapp radar api token and use it for exten…
Browse files Browse the repository at this point in the history
…sion build
  • Loading branch information
szymonmaslowski committed Jan 17, 2025
1 parent 4403138 commit 78be196
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/actions/build/app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ inputs:
LACE_EXTENSION_KEY:
description: 'Public extended manifest key'
required: true
DAPP_RADAR_API_KEY:
description: 'Production api token of DApp Radar API'
required: true
BUILD_DEV_PREVIEW:
description: 'Build developer preview of Lace'
required: false
Expand Down Expand Up @@ -76,6 +79,7 @@ runs:
BLOCKFROST_PROJECT_ID_PREPROD: ${{ inputs.BLOCKFROST_PROJECT_ID_PREPROD }}
BLOCKFROST_PROJECT_ID_PREVIEW: ${{ inputs.BLOCKFROST_PROJECT_ID_PREVIEW }}
LACE_EXTENSION_KEY: ${{ inputs.LACE_EXTENSION_KEY }}
DAPP_RADAR_API_KEY: ${{ inputs.DAPP_RADAR_API_KEY }}
BUILD_DEV_PREVIEW: ${{ inputs.BUILD_DEV_PREVIEW }}
POSTHOG_PRODUCTION_TOKEN: ${{ inputs.POSTHOG_PRODUCTION_TOKEN }}
PRODUCTION_MODE_TRACKING: ${{ inputs.PRODUCTION_MODE_TRACKING }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ jobs:
SENTRY_ORG: ${{ startsWith(github.ref, 'refs/heads/release') && vars.SENTRY_ORG || '' }}
SENTRY_PROJECT: ${{ startsWith(github.ref, 'refs/heads/release') && vars.SENTRY_PROJECT || ''}}
SENTRY_ENVIRONMENT: 'production'
DAPP_RADAR_API_URL: ${{ secrets.DAPP_RADAR_API_URL }}
DAPP_RADAR_API_KEY: ${{ secrets.DAPP_RADAR_API_KEY }}
DAPP_RADAR_API_KEY: ${{ startsWith(github.ref, 'refs/heads/release') && secrets.DAPP_RADAR_API_KEY || '' }}
build:
name: Build Lace
runs-on: ubuntu-22.04
Expand All @@ -234,8 +233,6 @@ jobs:
SENTRY_PROJECT: ${{ startsWith(github.ref, 'refs/heads/release') && vars.SENTRY_PROJECT || ''}}
SENTRY_ENVIRONMENT: 'smoke-tests'
WALLET_POLLING_INTERVAL_IN_SEC: 5
DAPP_RADAR_API_URL: ${{ secrets.DAPP_RADAR_API_URL }}
DAPP_RADAR_API_KEY: ${{ secrets.DAPP_RADAR_API_KEY }}

- name: Upload build artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 78be196

Please sign in to comment.