From 21dcd373814bc2976128e4c73d4e9af93c93fbef Mon Sep 17 00:00:00 2001 From: 3TUSK Date: Mon, 2 Sep 2024 16:07:57 -0700 Subject: [PATCH] Also try upload to release, so we can test it out --- .github/workflows/nightly.yml | 7 ++++++- build.gradle | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7506605a..c521c11d 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -28,4 +28,9 @@ jobs: run: mkdir libs && cp kiwi-jiachen/build/libs/* ./libs/ - name: Build id: build - run: ./gradlew build # publishReleasePublicationToTeaconRepository \ No newline at end of file + run: ./gradlew build githubActionOutput # publishReleasePublicationToTeaconRepository + - name: GitHub Action Artifact + uses: actions/upload-artifact@v3 + with: + name: ${{ steps.build.outputs.artifact_name }} + path: ${{ steps.build.outputs.artifact_path }} \ No newline at end of file diff --git a/build.gradle b/build.gradle index ef7c3314..d82d2de9 100644 --- a/build.gradle +++ b/build.gradle @@ -32,7 +32,6 @@ abstract class TeaConDumpPathToGitHub extends DefaultTask { // Write out new env variable for later usage outputFile << newLine << "artifact_name=${theFile.getName()}" - outputFile << newLine << "artifact_publish_name=${publishName.get()}" outputFile << newLine << "artifact_path=${theFile.absolutePath}" } } @@ -44,6 +43,10 @@ base { version = "${minecraft_version}-NeoForge-${mod_version}" group = "${mod_base_package}" // http://maven.apache.org/guides/mini/guide-naming-conventions.html +if (System.env.GITHUB_ACTIONS) { + version += "-build.${System.env.GITHUB_RUN_NUMBER}" +} + var realVersion = mod_version + '+neoforge' java.toolchain.languageVersion = JavaLanguageVersion.of(21)