Skip to content
Snippets Groups Projects
Verified Commit 0b5d06b4 authored by Griefed's avatar Griefed :joystick:
Browse files

ci: Add workflow for continuous build releases for the develop branch

parent 1960ffb3
No related branches found
No related tags found
2 merge requests!590Develop,!588Version 6
Pipeline #8770 passed
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
......@@ -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]
......
......@@ -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
......
......@@ -6,6 +6,7 @@ on:
jobs:
jar-and-media:
name: "JAR and media"
runs-on: ubuntu-latest
steps:
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment