-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
157f97e
commit e71e457
Showing
2 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,13 @@ jobs: | |
set-in-progress-message: | ||
if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' | ||
runs-on: ubuntu-latest | ||
needs: | ||
- pre-run | ||
steps: | ||
- name: Make short commit SHA | ||
run: echo "SHORT_SHA=`echo ${{ github.event.pull_request.head.sha }} | cut -c1-7`" >> $GITHUB_ENV | ||
|
||
- uses: kyranjamie/[email protected] | ||
with: | ||
header: '> _Building Leather…_' | ||
header: '> _Building Leather at commit `${{ env.SHORT_SHA }}`_' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build: | ||
|
@@ -29,28 +30,27 @@ jobs: | |
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 | ||
- run: echo "SHORT_SHA=`echo ${{ github.event.pull_request.head.sha }} | cut -c1-7`" >> $GITHUB_ENV | ||
|
||
- name: Build project | ||
run: yarn build | ||
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: ${{ env.SHORT_SHA }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
name: Upload ${{ matrix.target }} Extension Zip | ||
|
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