forked from FooSoft/yomichan-import
-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (46 loc) · 1.31 KB
/
build-and-release.yaml
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
name: Build and Release
on:
push:
pull_request:
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.0
id: go
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
- name: Install Packages
run: |
sudo apt-get install libgtk-3-dev -y
sudo apt-get install libz-mingw-w64-dev
- name: Build for Linux
run: |
./scripts/build_linux.sh
- name: Upload Linux Artifact
uses: actions/upload-artifact@v4
with:
path: yomitan-import-linux
name: yomitan-import-linux
- name: Build for Windows
run: |
./scripts/build_windows.sh
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
with:
path: yomitan-import-windows
name: yomitan-import-windows
- name: Release on Tag Creation
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
yomitan-import-linux.zip
yomitan-import-windows.zip
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}