Manual upload #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manual upload | |
on: | |
workflow_dispatch: | |
inputs: | |
version_modifier: | |
description: Version Suffix | |
required: false | |
default: '' | |
type: string | |
version_type: | |
description: Version type | |
required: false | |
default: release | |
type: choice | |
options: | |
- release | |
- beta | |
- alpha | |
changelog: | |
description: Changelog | |
required: false | |
default: '' | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Build and capture artifacts | |
uses: ./.github/actions/build | |
- name: Upload to Modrinth | |
run: ./gradlew modrinth | |
env: | |
MODRINTH_CHANGELOG: ${{ inputs.changelog }} | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
MODRINTH_VERSION_TYPE: ${{ inputs.version_type }} |