-
Notifications
You must be signed in to change notification settings - Fork 3
135 lines (127 loc) · 4.35 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
126
127
128
129
130
131
132
133
134
135
# https://github.com/marketplace/actions/action-docker-compose
# 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: sudo-bot/action-docker-compose@latest
# with:
# cli-args: "run build-wasm-core"
-
name: Debug build
uses: sudo-bot/action-docker-compose@latest
with:
cli-args: "--project-dir ${{ github.workspace }} run build-debug"
# -
# name: Build UTXORD wallet
# uses: sudo-bot/action-docker-compose@latest
# with:
# cli-args: "run build-wallet-utxord"
# -
# name: debug Archive action
# uses: thedoctor0/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
# with:
# directory: "./"
# type: 'zip'
# command: 'bash -c "pwd ; ls -al . ; ls -al ./browser-extension ; ls -al ./browser-extension/extension"'
# filename: utxord-wallet-${{ steps.vars.outputs.tag }}-build-debug.zip
# -
# 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: sudo-bot/action-docker-compose@latest
# with:
# cli-args: "run 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: sudo-bot/action-docker-compose@latest
# with:
# cli-args: "run 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