ViaFabric/.github/workflows/publish.yml
Kichura 5eb3fd204c
ViaVersion to 4.9.4-SNAPSHOT and some other things (#315)
* ViaVersion to 4.9.4-SNAPSHOT, Dependency + Cosmetical changes.

* legacy fabric moment.

* LF API 1.9.3

* LF API 1.9.3

---------

Co-authored-by: EnZaXD <60033407+FlorianMichael@users.noreply.github.com>
2024-03-15 14:37:08 +01:00

24 lines
706 B
YAML

name: Publish to CurseForge and Modrinth
on: [workflow_dispatch] # Manual trigger
jobs:
publish:
if: github.repository_owner == 'ViaVersion'
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
check-latest: true
- name: Build and Publish
env:
CURSEFORGE_API_KEY: ${{ secrets.CREEPER_CF }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: ./gradlew curseforge modrinth