feat: added Bitcoin Contracts entry point and list page #5720
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Extensions builds | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
pre-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@main | |
with: | |
access_token: ${{ github.token }} | |
set-in-progress-message: | |
if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
needs: | |
- pre-run | |
steps: | |
- uses: kyranjamie/[email protected] | |
with: | |
header: '> _Building Leather…_' | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
name: build-${{ matrix.target }}-extension | |
runs-on: ubuntu-latest | |
needs: | |
- pre-run | |
strategy: | |
matrix: | |
target: [chromium, firefox] | |
env: | |
WALLET_ENVIRONMENT: feature | |
TARGET_BROWSER: ${{ matrix.target }} | |
COINBASE_APP_ID: ${{ secrets.COINBASE_APP_ID }} | |
MOONPAY_API_KEY: ${{ secrets.MOONPAY_API_KEY }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_STAGING }} | |
TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }} | |
PR_NUMBER: ${{ github.event.number }} | |
COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: ./.github/actions/provision | |
- name: Add SHORT_SHA env property with commit short sha | |
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV | |
- name: Build project | |
run: yarn build | |
- uses: actions/upload-artifact@v3 | |
name: Upload ${{ matrix.target }} Extension Zip | |
with: | |
name: leather-${{ matrix.target }}-${{ env.SHORT_SHA }} | |
path: dist | |
set-download-link: | |
if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
needs: | |
- pre-run | |
- build | |
steps: | |
- uses: kyranjamie/[email protected] | |
with: | |
header: '> Try out this version of Leather — [download extension builds](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).' | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |