generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 940 Bytes
/
manual-upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}