Skip to content

Commit

Permalink
Fix publish again and again...
Browse files Browse the repository at this point in the history
Signed-off-by: Hendrix-Shen <[email protected]>
  • Loading branch information
Hendrix-Shen committed Jan 6, 2025
1 parent bbe271e commit 6c73300
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/prepare_action_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ jobs:
build_version_type=PULL_REQUEST
elif [ "$GH_EVENT_NAME" == 'release' ]
then
if [ ${{ github.event.release.prerelease }} ]
if [ ${{ github.event.release.prerelease }}” == 'true' ]
then
build_version_type=RC
publish_platform_channel=beta
else
build_version_type=RELEASE
publish_platform_channel=release
fi
publish_type=release
else
echo Unsupported github event name "$GH_EVENT_NAME"
exit 1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
if [ "${{ inputs.publish_type }}" == 'release' ]
then
github_tag=${{ github.event.ref }}
release_title=${{ github.event.release.name }}
github_tag=""
release_title="${{ github.event.release.name }}"
elif [ "${{ inputs.publish_type }}" == "dev" ]
then
if [ "$REPO_OWNER" == 'plusls' ]
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
retry-attempts: 3
retry-delay: 10000
- name: Publish Minecraft Mods (Stable Channel)
if: ${{ inputs.publish_channel == 'stable' }}
if: ${{ inputs.publish_type == 'release' }}
uses: Kir-Antipov/[email protected]
with:
github-tag: ${{ steps.shared_publish_info.outputs.github_tag }}
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
retry-attempts: 3
retry-delay: 10000
- name: Publish Minecraft Mods (Stable Channel)
if: ${{ inputs.publish_type == 'stable' }}
if: ${{ inputs.publish_type == 'release' }}
uses: Kir-Antipov/[email protected]
with:
modrinth-id: SFO4Ca80
Expand Down

0 comments on commit 6c73300

Please sign in to comment.