From fac39fa50252cb9184b129b5928cac2207eebb99 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Sun, 5 Nov 2023 05:52:24 -0500 Subject: [PATCH] Update workflow --- .github/workflows/build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88c5ce36..3736ccd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,9 @@ name: Build DeathMessages on: push: - branches: [ master ] + branches: + - master + - nextgen jobs: build: name: Build @@ -18,10 +20,21 @@ jobs: run: mvn clean kotlin:compile package - name: Release DeathMessages + if: "!contains(github.event.commits[0].message, '[Release]')" uses: marvinpinto/action-automatic-releases@master with: title: "DeathMessages v1.4.18" automatic_release_tag: "1.4.18" repo_token: "${{ secrets.GITHUB_TOKEN }}" files: "target/*.jar" + prerelease: false + + - name: Upload DeathMessages DevBuild + if: github.ref_name == 'nextgen' + uses: marvinpinto/action-automatic-releases@master + with: + title: "DeathMessages v1.4.18-SNAPSHOT" + automatic_release_tag: "dev" + repo_token: "${{ secrets.GITHUB_TOKEN }}" + files: "target/*.jar" prerelease: true