Skip to content

Publish to Curseforge #2

Publish to Curseforge

Publish to Curseforge #2

Workflow file for this run

name: Publish to Curseforge
on:
workflow_dispatch:
inputs:
tag:
description: 'Release Tag'
required: true
type: string
jobs:
build:
runs-on: ubuntu-22.04
steps:
# Get the specified release by tag
- uses: octokit/[email protected]
id: get_release_by_tag
with:
route: GET /repos/{owner}/{repo}/releases/tags/{tag}
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
tag: ${{ inputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: robinraju/[email protected]
id: get_release_assets
with:
tag: ${{ inputs.tag }}
fileName: "*.jar"
out-file-path: "assets"
token: ${{ secrets.GITHUB_TOKEN }}
- uses: itsmeow/curseforge-upload@v3
with:
file_path: "${{ fromJson(steps.get_release_assets.outputs.downloaded_files)[0] }}"
game_endpoint: "minecraft"
game_versions: "Minecraft 1.20:1.20,Java 17,Forge"
project_id: "518211"
token: ${{ secrets.CF_API_TOKEN }}
changelog: "${{ fromJson(steps.get_release_by_tag.outputs.data).body }}"