-
Notifications
You must be signed in to change notification settings - Fork 146
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
ce8ba56
commit 23367f3
Showing
1 changed file
with
11 additions
and
45 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 |
---|---|---|
|
@@ -32,11 +32,16 @@ jobs: | |
header: '> _Building Leather…_' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-chromium: | ||
name: Build debug Chrome extension | ||
build: | ||
name: Build debug ${{ matrix.target }} extension | ||
runs-on: ubuntu-latest | ||
needs: | ||
- pre-run | ||
strategy: | ||
matrix: | ||
target: [chromium, firefox] | ||
env: | ||
TARGET_BROWSER: ${{ matrix.target }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -55,58 +60,19 @@ jobs: | |
- name: Build project | ||
run: yarn build | ||
|
||
- name: Build extension | ||
run: sh build-ext.sh | ||
|
||
- uses: actions/upload-artifact@v3 | ||
name: Upload Chrome Extension Zip | ||
with: | ||
name: leather-chromium | ||
path: leather-chromium.zip | ||
|
||
build-firefox: | ||
name: Build debug Firefox extension | ||
runs-on: ubuntu-latest | ||
needs: | ||
- pre-run | ||
env: | ||
TARGET_BROWSER: firefox | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- uses: actions/cache@v3 | ||
id: cache-node-modules | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }} | ||
|
||
- uses: ./.github/actions/provision | ||
|
||
- name: Build project | ||
run: yarn build | ||
|
||
- name: Build extension | ||
run: sh build-ext.sh | ||
|
||
- name: Rename file | ||
run: mv leather-chromium.zip leather-firefox.zip | ||
|
||
- uses: actions/upload-artifact@v3 | ||
name: Upload ${{ matrix.target }} Extension Zip | ||
with: | ||
name: leather-firefox | ||
path: leather-firefox.zip | ||
name: leather-${{ matrix.target }} | ||
path: dist | ||
|
||
add-download-link: | ||
name: Add link to built extensions | ||
if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]' | ||
runs-on: ubuntu-latest | ||
needs: | ||
- pre-run | ||
- build-chromium | ||
- build-firefox | ||
- build | ||
steps: | ||
- uses: kyranjamie/[email protected] | ||
with: | ||
|