Skip to content

[1.21.3] v1.3.0

[1.21.3] v1.3.0 #24

Workflow file for this run

name: release
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: setup jdk 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'microsoft'
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: get Minecraft version
uses: BrycensRanch/read-properties-action@v1
id: minecraft_version
with:
file: gradle.properties
property: minecraft_version
- name: Publish
uses: Kir-Antipov/[email protected]
with:
files: build/libs/!(*-@(dev|sources|javadoc)).jar
game-versions: ${{ steps.minecraft_version.outputs.minecraft_version }}
game-version-filter: none
modrinth-id: EyDzmyQr
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}