Skip to content

Publish on Github, Curseforge & Modrinth #83

Publish on Github, Curseforge & Modrinth

Publish on Github, Curseforge & Modrinth #83

Workflow file for this run

name: Publish on Github, Curseforge & Modrinth
on: [ workflow_dispatch ]
env:
RELEASE_NAME: 0.5.11 for Minecraft 1.21.2-1.21.3
VERSION: 0.5.11
MC_VERSION: mc1.21.3
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Environment Variables
run: env
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 21
- name: Make Gradle Wrapper Executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Build
run: ./gradlew clean build
- name: Publish (CurseForge/Modrinth/Github)
uses: Kir-Antipov/[email protected]
with:
github-tag: "${{env.MC_VERSION}}-${{env.VERSION}}"
github-token: ${{ secrets.PUBLISH_GITHUB_TOKEN }}
modrinth-id: HtGckJVc
modrinth-token: ${{ secrets.PUBLISH_MODRINTH_TOKEN }}
curseforge-id: 693995
curseforge-token: ${{ secrets.PUBLISH_CURSEFORGE_TOKEN }}
name: "${{env.RELEASE_NAME}}"
version: "${{env.VERSION}}"
changelog-file: CHANGELOG.md
files: build/libs/!(*-@(dev|sources|javadoc)).jar
loaders: fabric
game-versions: |
1.21.2
1.21.3
java: |
21
22