Skip to content

Commit

Permalink
Github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurocosh committed Jun 9, 2024
1 parent e892011 commit 6b992c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ jobs:
run: ./gradlew setupDecompWorkspace

- name: Build with Gradle Wrapper
id: build
run: ./gradlew build

- uses: Kir-Antipov/[email protected]
- name: Publish mod
uses: Kir-Antipov/[email protected]
with:
loaders: forge
# version-type: beta
Expand All @@ -70,6 +72,10 @@ jobs:
# Only include this section if you wish to publish
# your assets on GitHub.
# github-token: ${{ secrets.GITHUB_TOKEN }}

github-tag: ${{ steps.build.outputs.github_tag }}
github-generate-changelog: true
github-token: ${{ secrets.GITHUB_TOKEN }}

files: build/libs/!(*-@(dev|sources|all)).jar

Expand All @@ -81,10 +87,6 @@ jobs:
mtlib(optional)
max-potion-id-extender(optional)
#- name: Publish on CurseForge
# run: ./gradlew curseforge


# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
#
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ tasks.register('printToGitHubActions') {
fw.write("version=${project.version}\n")
fw.write("game_versions=${project.minecraft.version}\n")
fw.write("release_type=${release_type}\n")
fw.write("github_tag=${mod_archives_base_name}-${project.version}\n")
fw.close()
}
}
Expand Down

0 comments on commit 6b992c0

Please sign in to comment.