-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (31 loc) · 1.1 KB
/
main.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
name: Maven deploy
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
- run: go version
- name: Get Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Install Wails Build Dependencies
run: sudo apt-get install -y build-essential libgtk-3-dev libwebkit2gtk-4.0-dev npm pkg-config
- name: Wails Doctor
run: wails doctor
- name: Fetch current Version based on Frontend
run: |
echo "version=$(grep -oP '(?<=version: ")[^"]*' frontend/src/staticContent/index.js)" >> $GITHUB_ENV
- name: Update version for Output File
run: |
sed -i "s/dev/${{ env.version }}/g" wails.json
- name: Install Wails Build (Windows)
run: wails build -platform windows/amd64
- name: Install Wails Build (Linux)
run: wails build -platform linux/amd64
- uses: actions/upload-artifact@v4
with:
name: app-v${{ env.version }}
path: build/bin/*