Skip to content

Commit 664a3fb

Browse files
🚀 New deployment file
1 parent 8cc2df9 commit 664a3fb

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/build.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- ci-cd
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [macos-latest, windows-latest]
18+
steps:
19+
- name: Checkout source code
20+
uses: actions/checkout@v3
21+
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v3
24+
with:
25+
distribution: 'zulu'
26+
java-version: '17'
27+
28+
- name: Set up Gradle (Windows uniquement)
29+
if: matrix.os == 'windows-latest'
30+
uses: gradle/gradle-build-action@v2
31+
32+
- name: Build the app
33+
run: ./gradlew packageReleaseDistZip
34+
35+
- name: Upload build artifacts (macOS)
36+
if: matrix.os == 'macos-latest'
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: macos-build
40+
path: build/compose/binaries/main/release/
41+
42+
- name: Upload build artifacts (Windows)
43+
if: matrix.os == 'windows-latest'
44+
uses: actions/upload-artifact@v3
45+
with:
46+
name: windows-build
47+
path: build/compose/binaries/main/release/

0 commit comments

Comments
 (0)