From d5de97e110d41e560651064d1a2e81980d3e4d7c Mon Sep 17 00:00:00 2001 From: BitHeaven Date: Wed, 22 Jan 2025 11:04:53 +0500 Subject: [PATCH] Remove version, add build number --- .gitea/workflows/build.yml | 6 ++---- build.gradle | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 8cca99e..d1638a7 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -10,8 +10,6 @@ jobs: RUN_NUMBER: ${{ gitea.run_number }} strategy: matrix: - version: [ '1.0.2' ] - minecraft: [ '1.21.4' ] java: [ '21' ] runs-on: ubuntu-latest steps: @@ -46,8 +44,8 @@ jobs: - name: Make release uses: akkuman/gitea-release-action@v1 with: - name: DonatePay Integration ${{ matrix.java }}-${{ gitea.run_number }} for ${{ matrix.minecraft }} - tag_name: donpayintegplug-${{ matrix.java }}+${{ matrix.minecraft }}-${{ gitea.run_number }} + name: DonatePay Integration ${{ matrix.java }}-${{ gitea.run_number }} + tag_name: donpayintegplug-${{ matrix.java }}-${{ gitea.run_number }} md5sum: true sha256sum: true files: |- diff --git a/build.gradle b/build.gradle index e3b6f8a..55b1a7a 100644 --- a/build.gradle +++ b/build.gradle @@ -2,8 +2,9 @@ plugins { id 'java' } +String buildNumber = System.getenv("RUN_NUMBER") group = 'ru.bitheaven' -version = '1.0.2' +version = (buildNumber != null ? buildNumber : "dev") repositories { mavenCentral()