We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf40e6b commit f4cdd60Copy full SHA for f4cdd60
.github/workflows/publish.yml
@@ -0,0 +1,26 @@
1
+name: Publish to Hangar and Modrinth
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+
7
+jobs:
8
+ publish:
9
+ if: github.repository_owner == 'ViaVersion'
10
+ runs-on: ubuntu-22.04
11
+ steps:
12
+ - name: Checkout Repository
13
+ uses: actions/checkout@v4
14
+ - name: Validate Gradle Wrapper
15
+ uses: gradle/wrapper-validation-action@v3
16
+ - name: Set up JDK 17
17
+ uses: actions/setup-java@v4
18
+ with:
19
+ distribution: 'temurin'
20
+ java-version: 17
21
+ check-latest: true
22
+ - name: Publish
23
+ env:
24
+ HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}
25
+ MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
26
+ run: ./gradlew build modrinth publishAllPublicationsToHangar
0 commit comments