https://github.com/hsgamer/action-mcreleaser
Github Action to publish artifacts to multiple Minecraft-related platforms using MCReleaser
https://github.com/hsgamer/action-mcreleaser
github github-actions hangar minecraft modrinth papermc polymart spigot spigot-api
Last synced: about 1 month ago
JSON representation
Github Action to publish artifacts to multiple Minecraft-related platforms using MCReleaser
- Host: GitHub
- URL: https://github.com/hsgamer/action-mcreleaser
- Owner: HSGamer
- Created: 2024-02-15T15:22:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-17T09:56:25.000Z (over 2 years ago)
- Last Synced: 2024-08-24T14:36:40.489Z (almost 2 years ago)
- Topics: github, github-actions, hangar, minecraft, modrinth, papermc, polymart, spigot, spigot-api
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# action-mcreleaser
Github Action to publish artifacts to multiple Minecraft-related platforms using [MCReleaser](https://github.com/HSGamer/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](https://github.com/HSGamer/MCReleaser#environment-variables) for available variables to put in `env`
## Example
* [`MoreFoWorld`](https://github.com/Folia-Inquisitors/MoreFoWorld/blob/82c7982aa1e784e8fe26ebc1dd0fc121d367062c/.github/workflows/gradle-release.yml#L34-L50)