Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 8711eda

Browse files
committed
Fix publish workflow
1 parent ced3e0d commit 8711eda

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
# Prepare and publish the mod to the modrinth
99
release:
10-
name: Publish Plugin
10+
name: Publish mod
1111
runs-on: ubuntu-latest
1212
steps:
1313

@@ -21,7 +21,8 @@ jobs:
2121
- name: Setup Java
2222
uses: actions/setup-java@v2
2323
with:
24-
java-version: 1.8
24+
distribution: zulu
25+
java-version: 8
2526
cache: gradle
2627

2728
# Set environment variables
@@ -51,7 +52,7 @@ jobs:
5152
- name: Publish Plugin
5253
env:
5354
MODRINTH: ${{ secrets.MODRINTH }}
54-
run: ./gradlew publishModrinth
55+
run: ./gradlew publishModrinth zip
5556

5657
# Upload artifact as a release asset
5758
- name: Upload Release Asset

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ import com.modrinth.minotaur.TaskModrinthUpload
9797
import com.modrinth.minotaur.request.Dependency
9898
import com.modrinth.minotaur.request.VersionType
9999

100-
task publishModrinth(type: TaskModrinthUpload) {
100+
task publishModrinth(type: TaskModrinthUpload, dependsOn: remapJar) {
101101
onlyIf {
102102
System.getenv("MODRINTH")
103103
}

0 commit comments

Comments
 (0)