Skip to content

Github Action to publish artifacts to multiple Minecraft-related platforms using MCReleaser

Notifications You must be signed in to change notification settings

HSGamer/action-mcreleaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

action-mcreleaser

Github Action to publish artifacts to multiple Minecraft-related platforms using MCReleaser

Inputs

files

  • Required: true

  • A file or wildcard pattern to upload

  • It's splited into primary and secondary files

  • If a single line is provided, the first file will be the primary one, others will be secondary

  • If multiple line is provided, the first line is for primary files, others are for secondary files

platforms

  • Required: false

  • Default: all

  • The platforms where the artifacts will be uploaded to

Usage

- name: Release
  uses: HSGamer/action-mcreleaser@main
  with:
    files: |
      build/libs/MyPlugin-*.jar
      *.jar
    platforms: all
  env:
    GITHUB_TOKEN: ${{ github.token }}

    MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
    MODRINTH_PROJECT: AABBCC
    MODRINTH_LOADERS: folia

    HANGAR_KEY: ${{ secrets.HANGAR_KEY }}
    HANGAR_PROJECT: AABBCC
    HANGAR_PLATFORM: paper

Check Environment Variables for available variables to put in env

Example