Skip to content

Commit

Permalink
fixup! fixup! feat: direct to blockfrost asset provider experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyslbw committed Oct 25, 2024
1 parent edeb74e commit 8dc9f57
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/actions/build/app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: buildapp
description: Build app

inputs:
BLOCKFROST_PROJECT_ID_MAINNET:
description: 'MainNet Project ID for Blockfrost API usage'
required: true
BLOCKFROST_PROJECT_ID_PREPROD:
description: 'PreProd Project ID for Blockfrost API usage'
required: true
BLOCKFROST_PROJECT_ID_PREVIEW:
description: 'Preview Project ID for Blockfrost API usage'
required: true
DIR:
description: 'app directory'
required: true
Expand Down Expand Up @@ -42,9 +51,9 @@ runs:
shell: bash
working-directory: ${{ inputs.DIR }}
env:
BLOCKFROST_PROJECT_ID_MAINNET: ${{ secrets.BLOCKFROST_PROJECT_ID_MAINNET }}
BLOCKFROST_PROJECT_ID_PREPROD: ${{ secrets.BLOCKFROST_PROJECT_ID_PREPROD }}
BLOCKFROST_PROJECT_ID_PREVIEW: ${{ secrets.BLOCKFROST_PROJECT_ID_PREVIEW }}
BLOCKFROST_PROJECT_ID_MAINNET: ${{ inputs.BLOCKFROST_PROJECT_ID_MAINNET }}
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 }}
BUILD_DEV_PREVIEW: ${{ inputs.BUILD_DEV_PREVIEW }}
POSTHOG_PRODUCTION_TOKEN: ${{ inputs.POSTHOG_PRODUCTION_TOKEN }}
Expand Down
16 changes: 16 additions & 0 deletions .github/shared/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ inputs:
description: 'Banxa`s integration URL'
required: false
default: 'https://lacewallet.banxa-sandbox.com/'
BLOCKFROST_PROJECT_ID_MAINNET:
description: 'MainNet Project ID for Blockfrost API usage'
required: true
BLOCKFROST_PROJECT_ID_PREPROD:
description: 'PreProd Project ID for Blockfrost API usage'
required: true
BLOCKFROST_PROJECT_ID_PREVIEW:
description: 'Preview Project ID for Blockfrost API usage'
required: true
BLOCKFROST_PROJECT_ID_SANCHONET:
description: 'SanchoNet Project ID for Blockfrost API usage'
required: true
CARDANO_SERVICES_URL_MAINNET:
description: 'Url for mainnet env'
required: false
Expand Down Expand Up @@ -107,6 +119,10 @@ runs:
POSTHOG_PRODUCTION_TOKEN: ${{ inputs.POSTHOG_PRODUCTION_TOKEN }}
PRODUCTION_MODE_TRACKING: ${{ inputs.PRODUCTION_MODE_TRACKING }}
BANXA_LACE_URL: ${{ inputs.BANXA_LACE_URL }}
BLOCKFROST_PROJECT_ID_MAINNET: ${{ inputs.BLOCKFROST_PROJECT_ID_MAINNET }}
BLOCKFROST_PROJECT_ID_PREPROD: ${{ inputs.BLOCKFROST_PROJECT_ID_PREPROD }}
BLOCKFROST_PROJECT_ID_PREVIEW: ${{ inputs.BLOCKFROST_PROJECT_ID_PREVIEW }}
BLOCKFROST_PROJECT_ID_SANCHONET: ${{ inputs.BLOCKFROST_PROJECT_ID_SANCHONET }}
CARDANO_SERVICES_URL_MAINNET: ${{ inputs.CARDANO_SERVICES_URL_MAINNET }}
CARDANO_SERVICES_URL_PREPROD: ${{ inputs.CARDANO_SERVICES_URL_PREPROD }}
CARDANO_SERVICES_URL_PREVIEW: ${{ inputs.CARDANO_SERVICES_URL_PREVIEW }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-dev-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Build dev preview version of Lace
uses: ./.github/shared/build
with:
BLOCKFROST_PROJECT_ID_MAINNET: ${{ secrets.BLOCKFROST_PROJECT_ID_MAINNET }}
BLOCKFROST_PROJECT_ID_PREPROD: ${{ secrets.BLOCKFROST_PROJECT_ID_PREPROD }}
BLOCKFROST_PROJECT_ID_PREVIEW: ${{ secrets.BLOCKFROST_PROJECT_ID_PREVIEW }}
BLOCKFROST_PROJECT_ID_SANCHONET: ${{ secrets.BLOCKFROST_PROJECT_ID_SANCHONET }}
BUILD_DEV_PREVIEW: 'true'
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ jobs:
- name: Build Lace browser extension
uses: ./.github/actions/build/app
with:
BLOCKFROST_PROJECT_ID_MAINNET: ${{ secrets.BLOCKFROST_PROJECT_ID_MAINNET }}
BLOCKFROST_PROJECT_ID_PREPROD: ${{ secrets.BLOCKFROST_PROJECT_ID_PREPROD }}
BLOCKFROST_PROJECT_ID_PREVIEW: ${{ secrets.BLOCKFROST_PROJECT_ID_PREVIEW }}
DIR: apps/browser-extension-wallet
NAME: lace-browser-extension
LACE_EXTENSION_KEY: ${{ secrets.MANIFEST_PUBLIC_KEY }}
Expand Down

0 comments on commit 8dc9f57

Please sign in to comment.