-
-
Notifications
You must be signed in to change notification settings - Fork 73
56 lines (43 loc) · 1.33 KB
/
electron-ubuntu.yml
File metadata and controls
56 lines (43 loc) · 1.33 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
name: Build Electron App for Ubuntu
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.7'
- name: Read version from file
id: get_version
run: echo "VERSION=$(cat version.txt)" >> $GITHUB_OUTPUT
- name: Install RPM build tools
run: |
sudo apt-get update
sudo apt-get install -y rpm
- name: Install Dependencies
run: make init
- name: Build Frontend and Backend
run: make build
- name: Package Electron app
run: make electron-package-linux
- name: Upload DEB artifacts
uses: actions/upload-artifact@v4
with:
name: zasper_${{ steps.get_version.outputs.VERSION }}.deb
path: ui/dist/zasper_${{ steps.get_version.outputs.VERSION }}.deb
- name: Upload RPM artifacts
uses: actions/upload-artifact@v4
with:
name: zasper_${{ steps.get_version.outputs.VERSION }}.rpm
path: ui/dist/zasper_${{ steps.get_version.outputs.VERSION }}.rpm