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

Commit ddcc804

Browse files
committed
Fix publish workflow
Signed-off-by: DeathsGun <deathsgun@protonmail.com>
1 parent e19d6d3 commit ddcc804

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Build
22
on:
33
push:
44
branches:
5-
- "1.16"
6-
- "1.17"
75
- "1.18"
86

97
jobs:

.github/workflows/publish.yml

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

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

@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
ref: ${{ github.event.release.tag_name }}
1919

20-
# Setup Java 11 environment for the next steps
20+
# Setup Java 17 environment for the next steps
2121
- name: Setup Java
2222
uses: actions/setup-java@v2
2323
with:
@@ -52,7 +52,7 @@ jobs:
5252
- name: Publish Plugin
5353
env:
5454
MODRINTH: ${{ secrets.MODRINTH }}
55-
run: ./gradlew publishModrinth
55+
run: ./gradlew publishModrinth zip
5656

5757
# Upload artifact as a release asset
5858
- name: Upload Release Asset

build.gradle

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

102-
task publishModrinth(type: TaskModrinthUpload) {
102+
task publishModrinth(type: TaskModrinthUpload, dependsOn: remapJar) {
103103
onlyIf {
104104
System.getenv("MODRINTH")
105105
}

0 commit comments

Comments
 (0)