diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b9bc188..bd49f7c 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,6 +6,8 @@ on: jobs: build: + env: + RUN_NUMBER: ${{ gitea.run_number }} strategy: matrix: java: [ '21' ] @@ -49,7 +51,7 @@ jobs: name: create-air-fabric - name: Extract files - run: unzip create-air-fabric.zip + run: unzip create-air-fabric - name: Make release uses: akkuman/gitea-release-action@v1 diff --git a/build.gradle b/build.gradle index 97ad1ac..a1863de 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ targetCompatibility = JavaVersion.VERSION_17 archivesBaseName = project.archives_base_name group = project.maven_group -String buildNumber = System.getenv("GITEA_RUN_NUMBER") +String buildNumber = System.getenv("RUN_NUMBER") version = "${mod_version}+${minecraft_version}" + (buildNumber != null ? "-${buildNumber}" : "") repositories {