-
Notifications
You must be signed in to change notification settings - Fork 8
60 lines (52 loc) · 1.75 KB
/
prod-release.yaml
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
name: Release Extension
on:
release:
types: released
jobs:
build:
runs-on: ubuntu-latest
name: Build Extension
env:
COMPANION_APP_URL: https://app.pilot.gnosisguild.org
defaults:
run:
working-directory: ./deployables/extension
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: latest
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install deps and build
run: |
pnpm install --prefer-offline
pnpm build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Update manifest.json with release tag
run: pnpm update-manifest -v ${{ github.event.release.tag_name }}
- name: Create extension zip file
run: pnpm zip
- name: Add zip to Github release
uses: softprops/action-gh-release@v2
with:
files: ./deployables/extension/zodiac-pilot.zip
- name: Upload & release to Chrome Webstore
uses: mnao305/[email protected]
with:
file-path: ./deployables/extension/zodiac-pilot.zip
extension-id: jklckajipokenkbbodifahogmidkekcb
client-id: ${{ secrets.CHROME_WEBSTORE_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_WEBSTORE_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_WEBSTORE_REFRESH_TOKEN }}
publish: false
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: gnosis-guild
SENTRY_PROJECT: pilot-extension
with:
environment: production