Skip to content

Release 5.1.1

Release 5.1.1 #34

Workflow file for this run

name: Release Build
on:
release:
permissions:
contents: write
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Upload assets to GitHub, Modrinth and CurseForge
uses: Kir-Antipov/[email protected]
with:
modrinth-id: A82glthi
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 518211
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
name: ""
loaders: |
neoforge
- name: Upload jar and checksum to Github release
id: upload-release-assets
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["build/libs/*.jar", "build/checksums/*.sha512"]'