-
Notifications
You must be signed in to change notification settings - Fork 57
188 lines (150 loc) · 5.98 KB
/
release-builds.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
name: Release
on:
release:
types: [created]
# TODO(fuxing): All external actions that are not maintained by an org or reputable individual to be removed.
jobs:
publish_linux_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
with:
node-version: 16
- name: install dependencies
run: npm cache clean --force && npm run init
- name: Build app
run: npm run pre:build:linux
- name: Publish app
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create-linux-checksum:
needs:
- publish_linux_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
with:
node-version: 16
- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
- name: Fetch Release Asset
uses: Legion2/download-release-action@68df3d242858e28a7e6d8b9838a3e6730cdfc422
with:
repository: 'DeFiCh/app'
tag: 'v${{ env.PACKAGE_VERSION}}'
file: 'DeFi-Wallet-${{ env.PACKAGE_VERSION}}.AppImage'
- name: Get Release Info with Tag Name
id: latest_release_info
uses: bruceadams/get-release@3a8733307b85cd96d52772b037617bd63d99522e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate SHA256 checksum
run: |
sha256sum DeFi-Wallet-${{ env.PACKAGE_VERSION}}.AppImage > DeFi-Wallet-${{ env.PACKAGE_VERSION}}.AppImage.SHA256
- name: Upload checksum - Linux
uses: softprops/action-gh-release@a80139913ad69754b738283897e8a1e3362b1a03
with:
fail_on_unmatched_files: true
files: ./DeFi-Wallet-${{ env.PACKAGE_VERSION}}.AppImage.SHA256
token: ${{ secrets.GITHUB_TOKEN }}
publish_mac_version:
runs-on: macos-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
with:
node-version: 16
- name: install dependencies
run: npm cache clean --force && npm run init
- name: Build app
run: npm run pre:build:mac
- name: Publish app
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK}}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD}}
CI: true
APPLE_ID: ${{ secrets.APPLE_ID}}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS}}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS}}
create-mac-checksum:
needs:
- publish_mac_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
with:
node-version: 16
- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
- name: Fetch Release Asset
uses: Legion2/download-release-action@68df3d242858e28a7e6d8b9838a3e6730cdfc422
with:
repository: 'DeFiCh/app'
tag: 'v${{ env.PACKAGE_VERSION}}'
file: 'DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg'
- name: Get Release Info with Tag Name
id: latest_release_info
uses: bruceadams/get-release@3a8733307b85cd96d52772b037617bd63d99522e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate SHA256 checksum
run: |
sha256sum DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg > DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg.SHA256
- name: Upload checksum - Mac
uses: softprops/action-gh-release@a80139913ad69754b738283897e8a1e3362b1a03
with:
fail_on_unmatched_files: true
files: ./DeFi-Wallet-${{ env.PACKAGE_VERSION}}.dmg.SHA256
token: ${{ secrets.GITHUB_TOKEN }}
publish_windows_version:
runs-on: windows-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
with:
node-version: 16
- name: install dependencies
run: npm cache clean --force && npm run init
- name: Build app
run: npm run pre:build:win
- name: Publish app
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create-windows-checksum:
needs:
- publish_windows_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd
with:
node-version: 16
- name: Get App Version
uses: nyaa8/package-version@5c5cc7daa32fab488b44d448f080aa9ef7255a44
- name: Fetch Release Asset
uses: Legion2/download-release-action@68df3d242858e28a7e6d8b9838a3e6730cdfc422
with:
repository: 'DeFiCh/app'
tag: 'v${{ env.PACKAGE_VERSION}}'
file: 'DeFi-Wallet-Setup-${{ env.PACKAGE_VERSION}}.exe'
- name: Get Release Info with Tag Name
id: latest_release_info
uses: bruceadams/get-release@3a8733307b85cd96d52772b037617bd63d99522e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate SHA256 checksum
run: |
sha256sum DeFi-Wallet-Setup-${{ env.PACKAGE_VERSION}}.exe > DeFi-Wallet-Setup-${{ env.PACKAGE_VERSION}}.exe.SHA256
- name: Upload checksum - Windows
uses: softprops/action-gh-release@a80139913ad69754b738283897e8a1e3362b1a03
with:
fail_on_unmatched_files: true
files: ./DeFi-Wallet-Setup-${{ env.PACKAGE_VERSION}}.exe.SHA256
token: ${{ secrets.GITHUB_TOKEN }}