Skip to content

Publish on CurseForge & Modrinth #7

Publish on CurseForge & Modrinth

Publish on CurseForge & Modrinth #7

Workflow file for this run

name: Publish on GitHub, CurseForge & Modrinth
on: [ workflow_dispatch ]
env:
MINECRAFT_VERSION: |
>=1.20.1
JAVA_VERSION: 17
VERSION: 2.0.1+1.20.x
RELEASE_NAME: Branded Logs v2.0.1 for 1.20.x
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }}
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: 17
- 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:
curseforge-id: 882472
curseforge-token: "${{env.CURSEFORGE_TOKEN}}"
modrinth-id: tbktcZz2
modrinth-token: "${{env.MODRINTH_TOKEN}}"
# github-tag: "v${{env.VERSION}}"
# github-token: "${{env.GITHUB_TOKEN}}"
name: "${{env.RELEASE_NAME}}"
version: "${{env.VERSION}}"
version-type: release
changelog-file: CHANGELOG.md
loaders: |
fabric
quilt
# game-versions: "${{env.MINECRAFT_VERSION}}"
java: "${{env.JAVA_VERSION}}"