forked from leather-io/extension
-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (60 loc) · 1.86 KB
/
publish-dev-extension.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
name: Publish Beta Extensions
on:
push:
tags:
- 'v*beta*'
workflow_dispatch:
env:
COINBASE_APP_ID: ${{ secrets.COINBASE_APP_ID }}
MOONPAY_API_KEY: ${{ secrets.MOONPAY_API_KEY }}
# To use another sentry DSN
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_STAGING }}
TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }}
PREVIEW_RELEASE: true
WALLET_ENVIRONMENT: preview
jobs:
build-extension:
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.extract_version.outputs.version }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/provision
- name: Extract version
id: extract_version
uses: Saionaro/[email protected]
- name: Build project
env:
IS_PUBLISHING: true
run: yarn build
- uses: actions/upload-artifact@v2
name: Upload build artifact
with:
name: hiro-wallet
path: dist
create-github-release:
name: Create Github release
runs-on: ubuntu-latest
needs:
- build-extension
steps:
- name: Download extension build
uses: actions/download-artifact@v2
with:
path: .
- name: Download release-notes.txt from create-version workflow
uses: dawidd6/action-download-artifact@v2
with:
workflow: create-version.yml
name: release-notes
- run: ls -R
- name: Zip release build
run: zip -r hiro-wallet.v${{ needs.build-extension.outputs.new_version }}.zip hiro-wallet/
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
tag_name: v${{ needs.build-extension.outputs.new_version }}
body_path: release-notes.txt
files: hiro-wallet.v${{ needs.build-extension.outputs.new_version }}.zip