Skip to content

Publish on GitHub, CurseForge & Modrinth #5

Publish on GitHub, CurseForge & Modrinth

Publish on GitHub, CurseForge & Modrinth #5

Workflow file for this run

name: Publish on GitHub, CurseForge & Modrinth
on: [ workflow_dispatch ]
env:
VERSION: 1.0.2
RELEASE_NAME: Merged Elytra 1.0.2 for Minecraft 1.21
MODRINTH_TOKEN: ${{ secrets.PUBLISH_MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.PUBLISH_CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }}
CHANGELOG: Fixed dupe bug on grindstone
jobs:
build:
uses: './.github/workflows/build.yml'
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: Artifacts
- name: Publish (CurseForge/Modrinth/GitHub)
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 1058806 #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
changelog: "${{env.CHANGELOG}}"
loaders: fabric
files: |
!(*-@(dev|sources|javadoc)).jar
*-@(dev|sources|javadocs).jar