-
Notifications
You must be signed in to change notification settings - Fork 4
80 lines (67 loc) · 1.96 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
80
name: release
on:
push:
tags:
- "v*.*.*"
jobs:
release_linux_windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libayatana-appindicator3-dev
- name: Install just
uses: taiki-e/install-action@just
- name: Build for Linux and Windows
run: |
version=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
just build_release_linux $version
just build_release_windows $version
- name: Upload Linux and Windows artifacts
uses: actions/upload-artifact@v4
with:
name: linux-windows-artifacts
path: |
./dist/kanata-tray.exe
./dist/kanata-tray-linux
release_darwin:
needs: release_linux_windows
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Install just
uses: taiki-e/install-action@just
- name: Download Linux and Windows artifacts
uses: actions/download-artifact@v4
with:
name: linux-windows-artifacts
path: dist
- name: Build for darwin
run: |
version=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
just build_release_macos $version
- name: Add Checksums
run: |
cd ./dist
for file in kanata-tray*; do shasum -a 256 "$file"; done > sha256sums
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
files: |
./dist/kanata-tray.exe
./dist/kanata-tray-linux
./dist/kanata-tray-macos
LICENSE
./dist/sha256sums