Publish on CurseForge & Modrinth #4
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: Publish on GitHub, CurseForge & Modrinth | |
on: [ workflow_dispatch ] | |
env: | |
MINECRAFT_VERSION: 1.20.1 | |
JAVA_VERSION: 17 | |
VERSION: 1.1.0+1.20.x | |
RELEASE_NAME: Branded Logs v1.1.0 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 | |
game-versions: "${{env.MINECRAFT_VERSION}}" | |
java: "${{env.JAVA_VERSION}}" |