1.0.8+1.21.4 #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |