Repository navigation
68 lines (56 loc) · 1.71 KB
/
Copy pathrelease.yml
File metadata and controls
68 lines (56 loc) · 1.71 KB
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
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# The frontend consumes the shared @ha/ui design system through a
# file: dependency (frontend/package.json -> ../ha-ui), pinned as a git
# submodule at the repo root — the release builds exactly the ha-ui
# commit this tag recorded.
- uses: actions/checkout@v7
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: '1.26'
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: |
go mod tidy
(cd "$GITHUB_WORKSPACE/ha-ui" && npm ci)
cd "$GITHUB_WORKSPACE/frontend" && npm ci
- name: Build frontend
run: cd frontend && npm run build
- name: Install Linux build dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
- name: Build application
run: |
go install github.com/wailsapp/wails/v2/cmd/wails@v2.15.0
wails build
- name: Install Windows cross-compile toolchain
run: sudo apt-get install -y gcc-mingw-w64-x86-64
- name: Build Windows application
run: wails build -platform windows/amd64
- name: Create Release
uses: softprops/action-gh-release@v3
with:
files: |
build/bin/MatchCoreArenaClient
build/bin/MatchCoreArenaClient.exe
draft: false
prerelease: false
generate_release_notes: true