Skip to content

Commit 4a159bf

Browse files
committed
[ci skip] Split up publishing steps
Putting them into the same step meant if one publish action failed, the second one wouldn't run. Before this change, Modrinth would often block Hangar from publishing
1 parent 6a2482f commit 4a159bf

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@ jobs:
2323
distribution: 'temurin'
2424
java-version: 17
2525
check-latest: true
26-
- name: Publish
26+
- name: Build
27+
run: ./gradlew build
28+
- name: Publish to Hangar
2729
env:
2830
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}
31+
run: ./gradlew publishAllPublicationsToHangar --stacktrace
32+
continue-on-error: true
33+
- name: Publish to Modrinth
34+
env:
2935
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
30-
run: ./gradlew build modrinth publishAllPublicationsToHangar --refresh-dependencies --stacktrace
36+
run: ./gradlew modrinth --stacktrace
37+
continue-on-error: true

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
projectVersion=5.4.2-SNAPSHOT
22

3-
# Smile emoji
4-
mcVersions=1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13, 1.12.2, 1.12.1, 1.12, 1.11.2, 1.11.1, 1.11, 1.10.2, 1.10.1, 1.10
5-
mcVersionRange=1.10-1.21.7
3+
# Smile emoji (note that modrinth may not have added the version on release yet)
4+
mcVersions=1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13, 1.12.2, 1.12.1, 1.12, 1.11.2, 1.11.1, 1.11, 1.10.2, 1.10.1, 1.10
5+
mcVersionRange=1.10-1.21.8
66
velocityVersion=3.4
77

88
org.gradle.configureondemand=true

0 commit comments

Comments
 (0)