-
-
Notifications
You must be signed in to change notification settings - Fork 10
67 lines (57 loc) · 1.84 KB
/
devbuild.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
name: Continuous
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
continuous:
name: "Continuous Pre-Release"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
check-latest: true
cache: 'gradle'
- uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
- uses: luangong/setup-install4j@v1
with:
version: 10.0.8
license: ${{ secrets.INSTALL4J_LICENSE }}
- name: Set Permissions
run: |
chmod +x gradlew
- name: Build with Gradle
run: |
./gradlew generateLicenseReport --info --full-stacktrace
./gradlew build --info --full-stacktrace
./gradlew media --info --full-stacktrace
- name: Generate checksum
uses: jmgilman/actions-generate-checksum@v1
with:
patterns: |
media/*.dmg
media/*.sh
media/*.exe
serverpackcreator-app/build/libs/serverpackcreator-app-dev.jar
serverpackcreator-plugin-example/build/libs/serverpackcreator-plugin-example-dev.jar
- name: Upload to GitHub Releases
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "continuous"
prerelease: true
title: "Development Build ${{ github.sha }}"
files: |
./checksum.txt
./media/*.dmg
./media/*.sh
./media/*.exe
./serverpackcreator-app/build/libs/serverpackcreator-app-dev.jar
./serverpackcreator-plugin-example/build/libs/serverpackcreator-plugin-example-dev.jar