Skip to content

Commit fff1c9a

Browse files
committed
feat(cd): add separate_forge input for conditional Forge mod uploads
Introduce a new workflow input parameter `separate_forge` to control whether the separate Forge mod version is uploaded to Modrinth
1 parent 18c1b30 commit fff1c9a

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/cd.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
required: false
2020
default: false
2121
type: boolean
22+
separate_forge:
23+
description: 'If false, separate Modrinth Forge mod version will not be uploaded'
24+
required: false
25+
default: true
26+
type: boolean
2227

2328
jobs:
2429
deploy:
@@ -254,7 +259,7 @@ jobs:
254259
- name: Upload Forge mod version to Modrinth # Forge mod version is uploaded separately atm due to it not being compatible with Minecraft 1.21.6 or above
255260
id: upload_forge_modrinth_mod
256261
uses: Kir-Antipov/mc-publish@v3.3
257-
if: steps.check_mod_folder.outputs.files_exists == 'true' && github.event.inputs.dry_run == 'false'
262+
if: steps.check_mod_folder.outputs.files_exists == 'true' && github.event.inputs.dry_run == 'false' && github.event.inputs.separate_forge == 'true'
258263
with:
259264
modrinth-id: 7YjclEGc
260265
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
- **Added support for Minecraft 26.1** 🐤
1+
- **Added support for Minecraft 26.1x** 🐤
22
- Added router to handle [unobfuscated code](https://www.minecraft.net/en-us/article/removing-obfuscation-in-java-edition)
33
- Bumped pack format and protocol version

0 commit comments

Comments
 (0)