-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (60 loc) · 1.92 KB
/
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
name: Release Artifacts
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn run build
- name: Package
run: yarn run package
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
- name: Rename stm-macos
run: mv release/stm-macos stm
- name: Bundle stm-macos
uses: montudor/action-zip@v1
with:
args: zip -qq -r release/stm-macos-v${{ steps.package-version.outputs.current-version}}.zip stm
- name: Remove stm (of macos)
run: rm stm
- name: Rename stm-linux
run: mv release/stm-linux stm
- name: Bundle stm-linux
uses: montudor/action-zip@v1
with:
args: zip -qq -r release/stm-linux-v${{ steps.package-version.outputs.current-version}}.zip stm
- name: Remove stm (of linux)
run: rm stm
- name: Rename stm-alpine
run: mv release/stm-alpine stm
- name: Bundle stm-alpine
uses: montudor/action-zip@v1
with:
args: zip -qq -r release/stm-alpine-v${{ steps.package-version.outputs.current-version}}.zip stm
- name: Remove stm (of alpine)
run: rm stm
- name: Rename stm-win
run: mv release/stm-win.exe stm.exe
- name: Bundle stm-win
uses: montudor/action-zip@v1
with:
args: zip -qq -r release/stm-win-v${{ steps.package-version.outputs.current-version}}.zip stm.exe
- name: Remove stm (of win)
run: rm stm.exe
- name: Release
uses: softprops/action-gh-release@v1
with:
files: release/*