-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (71 loc) · 2.11 KB
/
release-build.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Release Build
on:
release:
types: [created]
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-24.08
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Install Node.js SDK extension
run: |
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub org.freedesktop.Sdk.Extension.node20//24.08
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: frigate-config-gui.flatpak
manifest-path: flatpak/com.frigateNVR.ConfigGUI.yml
cache-key: flatpak-builder-${{ github.sha }}
- name: Upload Flatpak bundle
uses: actions/upload-artifact@v4
with:
name: flatpak-bundle
path: frigate-config-gui.flatpak
retention-days: 7
electron:
name: "Electron Build"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Build Electron app
run: npm run electron:build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: electron-${{ matrix.os }}
path: |
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.exe
dist/*.dmg
retention-days: 7
- name: Upload to release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: |
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.exe
dist/*.dmg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}