-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (49 loc) · 1.57 KB
/
release.yml
File metadata and controls
64 lines (49 loc) · 1.57 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
57
58
59
60
61
62
63
64
# SPDX-FileCopyrightText: 2026 Project516 <138796702+Project516@users.noreply.github.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Build and Upload Release Assets
on:
release:
types: [created]
jobs:
build-and-upload:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Build JAR with Gradle
run: ./gradlew build
- name: Build Debian package
run: ./package-deb.sh
- name: Install RPM build tools
run: sudo apt-get update && sudo apt-get install -y rpm
- name: Build Fedora/RPM package
run: ./package-rpm.sh
- name: Build ZIP archive
run: ./package-zip.sh
- name: Build Windows package with bundled JRE
run: ./package-win.sh
- name: Build macOS package with bundled JRE
run: ./package-macos.sh
- name: Build Linux package with bundled JRE
run: ./package-linux.sh
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: |
./app/build/libs/app-all.jar
./numberguessinggame.deb
./numberguessinggame-*.rpm
./archive.zip
./NumberGuessingGame-windows.zip
./NumberGuessingGame-macos.zip
./NumberGuessingGame-linux.tar.xz