Skip to content

1.6.0

1.6.0 #5

Workflow file for this run

name: Release
on:
release:
types:
- published
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup jdk
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
validate-wrappers: true
- name: Build with Gradle
run: ./gradlew build
- name: Upload GitHub release
uses: AButler/[email protected]
with:
files: 'build/libs/*.jar;!build/libs/*-sources.jar;!build/libs/*-dev.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Modrinth
run: ./gradlew modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_MASCOT_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}
- name: Sync README
run: ./gradlew modrinthSyncBody
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_MASCOT_TOKEN }}