-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (67 loc) · 1.99 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
name: Release
on:
push:
tags:
- 'v*.*.*'
env:
CARGO_TERM_COLOR: always
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
- name: Bundle
run: sudo apt-get install -y makeself && ./scripts/bundle.sh
- name: Zip
run: zip -j -r esig-${{ github.ref_name }}-linux-x86_64.zip target/release/ESig.run
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: esig-linux-x86_64
path: esig-${{ github.ref_name }}-linux-x86_64.zip
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
- name: Rename
run: mv target/release/esig.exe target/release/ESig.exe
- name: Zip
run: 7z a esig-${{ github.ref_name }}-windows-x86_64.zip ./target/release/ESig.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: esig-windows-x86_64
path: esig-${{ github.ref_name }}-windows-x86_64.zip
build-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
- name: Bundle
run: ./scripts/bundle.sh
- name: Zip
run: zip -j -r esig-${{ github.ref_name }}-macos-x86_64.zip target/release/ESig.dmg
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: esig-macos-x86_64
path: esig-${{ github.ref_name }}-macos-x86_64.zip
release:
runs-on: ubuntu-latest
needs: [build-ubuntu, build-windows, build-macos]
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: release
pattern: esig*
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v2
with:
files: release/*