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.4.2
RELEASE_NAME: Improved Signs 1.4.2 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'

Check failure on line 13 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

error parsing called workflow ".github/workflows/publish.yml" -> "./.github/workflows/build.yml" (source branch with sha:37ece289b8bc98f2c097164694205e6abf8dfdc5) : workflow is not reusable as it is missing a `on.workflow_call` trigger
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: 384963 #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
files: |
!(*-@(dev|sources|javadoc)).jar
*-@(dev|sources|javadocs).jar