ci: Add workflow for continuous build releases for the develop branch #1
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
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 |