Github Action to publish artifacts to multiple Minecraft-related platforms using MCReleaser
-
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
-
Required:
false
-
Default:
all
-
The platforms where the artifacts will be uploaded to
- 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