2024-03-15 14:37:08 +01:00
|
|
|
name: Publish to CurseForge and Modrinth
|
2022-05-22 19:17:14 +02:00
|
|
|
on: [workflow_dispatch] # Manual trigger
|
|
|
|
|
|
|
|
jobs:
|
2023-06-18 21:13:21 +02:00
|
|
|
publish:
|
|
|
|
if: github.repository_owner == 'ViaVersion'
|
2024-05-17 21:50:27 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2022-05-22 19:17:14 +02:00
|
|
|
steps:
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Checkout Repository
|
2023-09-21 19:57:20 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Validate Gradle Wrapper
|
2024-08-05 18:14:50 +02:00
|
|
|
uses: gradle/actions/wrapper-validation@v4
|
2024-04-21 17:08:42 +02:00
|
|
|
- name: Set up JDK 21
|
2023-12-17 03:31:17 +01:00
|
|
|
uses: actions/setup-java@v4
|
2022-05-22 19:17:14 +02:00
|
|
|
with:
|
2022-10-13 22:18:19 +02:00
|
|
|
distribution: 'temurin'
|
2024-04-21 17:08:42 +02:00
|
|
|
java-version: 21
|
2023-09-21 19:57:20 +02:00
|
|
|
check-latest: true
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Build and Publish
|
2022-05-22 19:17:14 +02:00
|
|
|
env:
|
|
|
|
CURSEFORGE_API_KEY: ${{ secrets.CREEPER_CF }}
|
|
|
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
|
|
|
run: ./gradlew curseforge modrinth
|