Skip to content

Commit

Permalink
Also try upload to release, so we can test it out
Browse files Browse the repository at this point in the history
  • Loading branch information
3TUSK committed Sep 2, 2024
1 parent 4d94451 commit 21dcd37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ jobs:
run: mkdir libs && cp kiwi-jiachen/build/libs/* ./libs/
- name: Build
id: build
run: ./gradlew build # publishReleasePublicationToTeaconRepository
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 }}
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
}
Expand All @@ -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)
Expand Down

0 comments on commit 21dcd37

Please sign in to comment.