Skip to content

1.0.8+1.21.4

1.0.8+1.21.4 #9

name: Build and Publish
on:
release:
types: [published]
jobs:
build_and_publish:
runs-on: ubuntu-latest
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: publish to modrinth and curseforge
uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: 3YyJXLPe
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 520624
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
# Determines the way automatic game-versions resolvement works
game-version-filter: min-major | min-minor | releases
java: 21