-
Notifications
You must be signed in to change notification settings - Fork 8
76 lines (65 loc) · 2.29 KB
/
publishFirefox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Publish firefox extension
on:
push:
tags:
- "@cryptkeeperzk/app-*"
env:
CRYPTKEEPER_DEBUG: false
USER_MNEMONIC: false
E2E: false
METAMASK_EXTENSION_ID: "webextension@metamask.io"
METAMASK_VERSION: "10.28.1"
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
FREIGHT_TRUST_NETWORK: ${{ secrets.FREIGHT_TRUST_NETWORK }}
PULSECHAIN_API_KEY: ${{ secrets.PULSECHAIN_API_KEY }}
BANDADA_API_URL: ${{ vars.BANDADA_API_URL }}
BANDADA_URL: ${{ vars.BANDADA_URL }}
TARGET: "firefox"
DEMO_URL: ${{ vars.DEMO_URL }}
MERKLE_MOCK_SERVER: ${{ vars.MERKLE_MOCK_SERVER }}
EXTENSION_VERSION: ""
MANIFEST_VERSION: 2
VERIFIABLE_CREDENTIALS: false
WEBPACK_ANALYZER: false
TEST_GROUP_ID: ${{ vars.TEST_GROUP_ID }}
TEST_GROUP_API_KEY: ${{ vars.TEST_GROUP_API_KEY }}
TEST_GROUP_INVITE_CODE: ${{ vars.TEST_GROUP_INVITE_CODE }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish-firefox-extension:
strategy:
fail-fast: false
matrix:
node-version: [18]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: |-
pnpm install --frozen-lockfile --prefer-offline
pnpm install -g web-ext web-ext-submit
- name: Get version
run: |-
echo "EXTENSION_VERSION=$(node -e "console.log('${{ github.ref_name }}'.split('-')[1])")" >> $GITHUB_ENV
- name: Build firefox artifact
env:
TARGET: "firefox"
MANIFEST_VERSION: 2
run: |-
pnpm exec nx run @cryptkeeperzk/app:bump --tag=${{ github.ref_name }}
pnpm run build
zip -r cryptkeeper-firefox-extension-v${{ env.EXTENSION_VERSION }}.zip ./packages/app/dist
- name: Upload artifact to firefox store
run: |-
mv cryptkeeper-firefox-extension-v${{ env.EXTENSION_VERSION }}.zip ./packages/app/dist
cd ./packages/app/dist
web-ext-submit --api-key=${{ secrets.WEB_EXT_API_KEY }} --api-secret=${{ secrets.WEB_EXT_API_SECRET }} --use-submission-api --channel=listed