2023-09-18 20:52:33 +02:00
|
|
|
name: Publish
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
jobs:
|
|
|
|
gradle:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Commit
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Fetch Tags
|
|
|
|
run: git fetch --unshallow --tags -f
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2024-09-26 22:36:35 +02:00
|
|
|
java-version: 21
|
2024-03-27 20:20:33 +01:00
|
|
|
- name: Prepare Datagen
|
|
|
|
uses: eskatos/gradle-command-action@v1
|
|
|
|
with:
|
|
|
|
arguments: rundatagen
|
2023-09-18 20:52:33 +02:00
|
|
|
- name: Publish Modrinth Jar
|
|
|
|
env:
|
|
|
|
MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
uses: eskatos/gradle-command-action@v1
|
|
|
|
with:
|
|
|
|
arguments: modrinth
|