From ef7f1dbf1cbd781a5c8e081820a803c871b42d5e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 10:53:49 +0000 Subject: Split Modrinth release workflow for Paper and Velocity with constants Co-authored-by: m1sk9 <82575685+m1sk9@users.noreply.github.com> --- .github/workflows/release.yaml | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to '.github') diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f46c4e9..b17aa91 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,6 +80,9 @@ jobs: needs: [validate, build] permissions: contents: write + env: + MODRINTH_CHANNEL: beta + MODRINTH_GAME_VERSIONS: "1.21.x" steps: - name: Checkout repository uses: actions/checkout@v6 @@ -109,21 +112,31 @@ jobs: --draft \ --notes "" - - name: Publish to Modrinth + - name: Publish to Modrinth (Paper) uses: cloudnode-pro/modrinth-publish@0a5268ad092d4727bb6424326746fa2fe88761ff # v2 with: token: ${{ secrets.MODRINTH_TOKEN }} - name: LunaticChat v${{ needs.validate.outputs.version }} + name: LunaticChat v${{ needs.validate.outputs.version }} (Paper) project: ${{ secrets.MODRINTH_PROJECT_ID }} - version: ${{ needs.validate.outputs.version }} - channel: beta + version: ${{ needs.validate.outputs.version }}-paper + channel: ${{ env.MODRINTH_CHANNEL }} changelog: |- Please refer to the [GitHub release](https://github.com/m1sk9/LunaticChat/releases/tag/v${{ needs.validate.outputs.version }}) for update details. - loaders: |- - paper - velocity - game-versions: "1.21.x" - files: |- - platform-paper/build/libs/${{ needs.validate.outputs.paper_jar_name }} - platform-velocity/build/libs/${{ needs.validate.outputs.velocity_jar_name }} + loaders: paper + game-versions: ${{ env.MODRINTH_GAME_VERSIONS }} + files: platform-paper/build/libs/${{ needs.validate.outputs.paper_jar_name }} + + - name: Publish to Modrinth (Velocity) + uses: cloudnode-pro/modrinth-publish@0a5268ad092d4727bb6424326746fa2fe88761ff # v2 + with: + token: ${{ secrets.MODRINTH_TOKEN }} + name: LunaticChat v${{ needs.validate.outputs.version }} (Velocity) + project: ${{ secrets.MODRINTH_PROJECT_ID }} + version: ${{ needs.validate.outputs.version }}-velocity + channel: ${{ env.MODRINTH_CHANNEL }} + changelog: |- + Please refer to the [GitHub release](https://github.com/m1sk9/LunaticChat/releases/tag/v${{ needs.validate.outputs.version }}) for update details. + loaders: velocity + game-versions: ${{ env.MODRINTH_GAME_VERSIONS }} + files: platform-velocity/build/libs/${{ needs.validate.outputs.velocity_jar_name }} -- cgit v1.2.1