-
Notifications
You must be signed in to change notification settings - Fork 3
125 lines (117 loc) · 3.96 KB
/
build-publish-release.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# https://github.com/marketplace/actions/docker-compose-run-action
# https://github.com/marketplace/actions/zip-release
# https://github.com/marketplace/actions/gh-release
# https://github.com/marketplace/actions/publish-chrome-extension-to-chrome-web-store
name: Build and publish release
on:
push:
tags:
- "v*.*.*"
env:
IMAGE_LABEL_NAME: layer1dot5
IMAGE_LABEL_APP: utxord-wallet-toolchain
permissions:
contents: write
jobs:
build_publish_release:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
with:
submodules: 'recursive'
set-safe-directory: '*'
-
name: Extract tag value
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
# accessible as ${{ steps.vars.outputs.tag }}
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
# accessible as $RELEASE_VERSION or ${{ env.RELEASE_VERSION }}
-
name: Build wallet core
uses: adrielcodeco/docker-compose-run-action@v1
with:
compose-file: "./docker-compose.yml"
service: build-wasm-core
# -
# name: Build UTXORD wallet
# uses: adrielcodeco/docker-compose-run-action@v1
# with:
# compose-file: "./docker-compose.yml"
# service: build-wallet-utxord
# -
# name: Archive versioned release
# uses: thedoctor0/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
# with:
# directory: "./browser-extension/extension/prod"
# type: 'zip'
# filename: ../../../utxord-wallet-${{ steps.vars.outputs.tag }}.zip
# -
# name: Archive non-versioned release
# uses: thedoctor0/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
# with:
# directory: "./browser-extension/extension/prod"
# type: 'zip'
# filename: ../../../utxord-wallet.zip
#
# -
# name: Build QA wallet
# uses: adrielcodeco/docker-compose-run-action@v1
# with:
# compose-file: "./docker-compose.yml"
# service: build-wallet-qa
# -
# name: Archive versioned release
# uses: thedoctor0/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
# with:
# directory: "./browser-extension/extension/prod"
# type: 'zip'
# filename: ../../../utxord-wallet-${{ steps.vars.outputs.tag }}-qa.zip
# -
# name: Archive non-versioned release
# uses: thedoctor0/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
# with:
# directory: "./browser-extension/extension/prod"
# type: 'zip'
# filename: ../../../utxord-wallet-qa.zip
#
# -
# name: Build E2E wallet
# uses: adrielcodeco/docker-compose-run-action@v1
# with:
# compose-file: "./docker-compose.yml"
# service: build-wallet-e2e
# -
# name: Archive versioned release
# uses: thedoctor0/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
# with:
# directory: "./browser-extension/extension/prod"
# type: 'zip'
# filename: ../../../utxord-wallet-${{ steps.vars.outputs.tag }}-e2e.zip
# -
# name: Archive non-versioned release
# uses: thedoctor0/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
# with:
# directory: "./browser-extension/extension/prod"
# type: 'zip'
# filename: ../../../utxord-wallet-e2e.zip
#
# -
# name: Release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: |
# utxord-wallet-${{ steps.vars.outputs.tag }}.zip
# utxord-wallet-${{ steps.vars.outputs.tag }}-qa.zip
# utxord-wallet-${{ steps.vars.outputs.tag }}-e2e.zip
# utxord-wallet.zip
# utxord-wallet-qa.zip
# utxord-wallet-e2e.zip