Skip to content

Publish on GitHub, CurseForge & Modrinth #1

Publish on GitHub, CurseForge & Modrinth

Publish on GitHub, CurseForge & Modrinth #1

Workflow file for this run

name: Publish on GitHub, CurseForge & Modrinth
on: [ workflow_dispatch ]
env:
VERSION: 1.0.0
RELEASE_NAME: Merged Elytra 1.0.0 for Minecraft 1.21
MODRINTH_TOKEN: ${{ secrets.PUBLISH_MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.PUBLISH_CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }}
jobs:
build:
uses: './.github/workflows/build.yml'
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Publish (CurseForge/Modrinth/GitHub)
uses: Kir-Antipov/[email protected] #The specified MC-Publish GitHub Action in the version 3.2
with:
# curseforge-id: 123456 #The id of your CurseForge project
# curseforge-token: "${{env.CURSEFORGE_TOKEN}}"
modrinth-id: K9mQ90pb #The id of your modrinth project
modrinth-token: "${{env.MODRINTH_TOKEN}}"
modrinth-featured: true
github-tag: "v${{env.VERSION}}"
github-token: "${{env.GITHUB_TOKEN}}"
name: "${{env.RELEASE_NAME}}"
version: "${{env.VERSION}}"
version-type: release
loaders: fabric