Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit c295747

Browse files
committed
publish.yml
1 parent 70ff736 commit c295747

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11

22
name: publish
3-
on: [workflow_dispatch]
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version_type:
7+
description: "The type of this version. e.g alpha"
8+
type: choice
9+
default: beta
10+
options:
11+
- release
12+
- beta
13+
- alpha
14+
required: false
415

516
jobs:
617
publish:
@@ -25,9 +36,9 @@ jobs:
2536
echo "VERSION_PLAIN=$(${{github.workspace}}/gradlew -q printVersion)" >> $GITHUB_ENV
2637
echo "GAME_VERSIONS=$(${{github.workspace}}/gradlew -q printGameVersions)" >> $GITHUB_ENV
2738
- name: Publish Minecraft mods
28-
uses: Kir-Antipov/[email protected]
39+
uses: Kir-Antipov/[email protected].0
2940
with:
30-
version-type: beta
41+
version-type: ${{ inputs.version_type }}
3142
changelog-file: CHANGELOG.md
3243
name: ${{ env.VERSION_INFORMATION }}
3344
version: ${{ env.VERSION_PLAIN }}

0 commit comments

Comments
 (0)