diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml new file mode 100644 index 000000000..73b5e6317 --- /dev/null +++ b/.github/workflows/continuous.yml @@ -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/checkout@v4.1.1 + + - 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 \ No newline at end of file diff --git a/.github/workflows/github-prerelease.yml b/.github/workflows/github-prerelease.yml index a5707c4cf..8d3895820 100644 --- a/.github/workflows/github-prerelease.yml +++ b/.github/workflows/github-prerelease.yml @@ -9,6 +9,7 @@ on: jobs: preparations: + name: "Preparations" runs-on: ubuntu-latest # OUTPUTS outputs: @@ -29,6 +30,7 @@ jobs: run: echo ${{steps.tag.outputs.tag}} jar-and-media: + name: "JAR and media" needs: preparations runs-on: ubuntu-latest @@ -101,6 +103,7 @@ jobs: if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` prerelease: + name: "PreRelease" if: ${{ always() }} runs-on: ubuntu-latest needs: [preparations, jar-and-media] @@ -193,6 +196,7 @@ jobs: serverpackcreator-plugin-example/build/libs/ServerPackCreator-${{ needs.preparations.outputs.version }}-Example-Plugin.jar news: + name: "News on Discord" runs-on: ubuntu-latest needs: [preparations, prerelease] diff --git a/.github/workflows/github_release.yml b/.github/workflows/github_release.yml index 4e1b8cf9a..286c72acd 100644 --- a/.github/workflows/github_release.yml +++ b/.github/workflows/github_release.yml @@ -7,6 +7,7 @@ on: jobs: preparations: + name: "Preparations" runs-on: ubuntu-latest # OUTPUTS outputs: @@ -27,6 +28,7 @@ jobs: run: echo ${{steps.tag.outputs.tag}} jar-and-media: + name: "JAR and media" needs: preparations runs-on: ubuntu-latest @@ -100,6 +102,7 @@ jobs: if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` release: + name: "Release" if: ${{ always() }} runs-on: ubuntu-latest needs: [preparations, jar-and-media] @@ -186,6 +189,7 @@ jobs: serverpackcreator-plugin-example/build/libs/ServerPackCreator-${{ needs.preparations.outputs.version }}-Example-Plugin.jar news: + name: "News on Discord" runs-on: ubuntu-latest needs: [preparations, release] @@ -217,6 +221,7 @@ jobs: --footer-icon "https://i.griefed.de/images/2022/01/21/start_generation.png" pages: + name: "GitHub Pages" runs-on: ubuntu-latest steps: - name: Checkout latest code diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e60e88e66..92fe15d9f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,7 @@ on: jobs: jar-and-media: + name: "JAR and media" runs-on: ubuntu-latest steps: diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml index 7ba6669b7..686f7ed1c 100644 --- a/.github/workflows/update_readme.yml +++ b/.github/workflows/update_readme.yml @@ -6,7 +6,7 @@ on: jobs: blog: runs-on: ubuntu-latest - name: Fetch and Generate Blog Posts + name: "Fetch and Generate Blog Posts" steps: - name: Checkout uses: actions/checkout@v4