-
-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (66 loc) · 1.82 KB
/
deploy.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
83
name: Deploy
on:
workflow_dispatch:
jobs:
api:
name: Build API
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew --no-daemon :api:shadowJar
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: api-${{ github.sha }}
path: desktop/api.jar
retention-days: 1
desktop:
needs: api
name: Build Desktop App
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: desktop
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Download API
uses: actions/download-artifact@v4
with:
name: api-${{ github.sha }}
path: desktop
- name: Install Dependencies
run: npm i
- name: Install Linux Build Dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install -y rpm
- name: Build
run: npm run electron:build
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: nebulosa-${{ matrix.os }}-${{ github.sha }}
path: |
desktop/release/nebulosa*.AppImage
desktop/release/nebulosa*.deb
desktop/release/nebulosa*.rpm
desktop/release/nebulosa*.exe
desktop/release/nebulosa*.dmg
retention-days: 3