Skip to content

Commit

Permalink
Add GH artifacts to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Dec 20, 2022
1 parent 01d6913 commit bdfdb05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
env:
MEGA_VERSION: ${{ github.event.release.tag_name }}
run: ./gradlew build --max-workers 1
- name: Upload Release Artifact
uses: softprops/action-gh-release@v1
with:
files: build/libs/megacells-*.jar
tag_name: ${{ github.event.release.tag_name }}
- name: Upload to mod repositories
env:
MEGA_VERSION: ${{ github.event.release.tag_name }}
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ subprojects {
apply plugin: "me.shedaniel.unified-publishing"

archivesBaseName = mod_id + "-" + project.name
version = (System.getenv("MEGA_VERSION") ?: "v0.0.0").substring(1)
version = (System.getenv("MEGA_VERSION") ?: "v0.0.0").substring(1) + "-" + minecraft_version
group = maven_group + "-" + mod_id

loom {
Expand Down Expand Up @@ -193,6 +193,7 @@ allprojects {
if (project.name == "forge") {
optional {
curseforge = "applied-mekanistics"
curseforge = "applied-botanics-addon"
modrinth = "applied-mekanistics"
}
}
Expand Down

0 comments on commit bdfdb05

Please sign in to comment.