Skip to content

3.1.0 for 1.20.4

3.1.0 for 1.20.4 #37

Workflow file for this run

name: Publish
on:
release:
types:
- published
jobs:
publish:
runs-on:
ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
check-latest: true
- name: Cache Gradle configuration
uses: actions/cache@v3
with:
path: |
~/.gradle
.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/settings.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew build
- name: Publish to GitHub
uses: AButler/[email protected]
with:
files: build/libs/*.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Modrinth using Minotaur
run: ./gradlew modrinth