-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.28 KB
/
release.yml
File metadata and controls
58 lines (45 loc) · 1.28 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
name: Wails Release
on:
push:
tags:
- "v*"
env:
GO_VERSION: "1.21"
defaults:
run:
working-directory: desktop
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: "**/go.sum"
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install frontend deps with Bun
run: |
cd frontend
bun install
- name: Install Windows cross-compilation toolchain
run: sudo apt-get update && sudo apt-get install -y mingw-w64
- name: Install NSIS for Windows Installer
run: sudo apt-get install -y nsis
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Build Wails Application
run: |
wails build -nsis -platform windows/amd64 \
-ldflags "-X main.apiURL=${{ secrets.PUBLIC_API_URL }}"
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: desktop/build/bin/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}