Skip to content

Commit 0edfd84

Browse files
florianreuthkennytv
andcommitted
[ci skip] Split up publishing steps
Co-authored-by: Nassim Jahnke <[email protected]>
1 parent 57a6474 commit 0edfd84

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
publish:
1010
if: github.repository_owner == 'ViaVersion'
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
steps:
1313
- name: Checkout Repository
1414
uses: actions/checkout@v4
@@ -22,8 +22,15 @@ jobs:
2222
distribution: 'temurin'
2323
java-version: 17
2424
check-latest: true
25-
- name: Publish
25+
- name: Build
26+
run: ./gradlew build
27+
- name: Publish to Hangar
2628
env:
2729
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}
30+
run: ./gradlew publishAllPublicationsToHangar --stacktrace
31+
continue-on-error: true
32+
- name: Publish to Modrinth
33+
env:
2834
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
29-
run: ./gradlew build modrinth publishAllPublicationsToHangar
35+
run: ./gradlew modrinth --stacktrace
36+
continue-on-error: true

0 commit comments

Comments
 (0)