2022-05-22 19:17:14 +02:00
|
|
|
name: publish
|
|
|
|
on: [workflow_dispatch] # Manual trigger
|
|
|
|
|
|
|
|
jobs:
|
2023-06-18 21:13:21 +02:00
|
|
|
publish:
|
|
|
|
if: github.repository_owner == 'ViaVersion'
|
2022-10-13 22:10:21 +02:00
|
|
|
runs-on: ubuntu-22.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
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: Set up JDK 17
|
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'
|
|
|
|
java-version: 17
|
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
|