-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add workflow for continuous build releases for the develop branch
- Loading branch information
Showing
5 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
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: Upload to GitHub Releases | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "continuous" | ||
prerelease: true | ||
title: "Continuous Build" | ||
files: | | ||
./checksum.txt | ||
./media/*.dmg | ||
./media/*.sh | ||
./media/*.exe | ||
./serverpackcreator-app/build/libs/ServerPackCreator-dev.jar | ||
./serverpackcreator-plugin-example/build/libs/ServerPackCreator-dev-Example-Plugin.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
|
||
jobs: | ||
jar-and-media: | ||
name: "JAR and media" | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters