Skip to content

Commit f4cdd60

Browse files
Hello Modrinth and Hangar 😎
1 parent cf40e6b commit f4cdd60

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)