Skip to content

Commit

Permalink
publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Jan 27, 2024
1 parent a58285e commit 24aa049
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@

name: publish
on: [workflow_dispatch]
on:
workflow_dispatch:
inputs:
version_type:
description: "The type of this version. e.g alpha"
type: choice
default: beta
options:
- release
- beta
- alpha
required: false

jobs:
publish:
Expand All @@ -23,9 +35,9 @@ jobs:
echo "VERSION_INFORMATION=$(${{github.workspace}}/gradlew -q printVersionName)" >> $GITHUB_ENV
echo "VERSION_PLAIN=$(${{github.workspace}}/gradlew -q printVersion)" >> $GITHUB_ENV
- name: Publish Minecraft Mods
uses: Kir-Antipov/[email protected]
uses: Kir-Antipov/[email protected].0
with:
version-type: beta
version-type: ${{ inputs.version_type }}
changelog-file: CHANGELOG.md
name: ${{ env.VERSION_INFORMATION }}
version: ${{ env.VERSION_PLAIN }}
Expand All @@ -41,6 +53,7 @@ jobs:
github-tag: v${{ env.VERSION_PLAIN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-commitish: ${{ github.sha }}
github-prerelease: false

modrinth-id: fLAsXzkA
Expand Down

0 comments on commit 24aa049

Please sign in to comment.