diff options
| author | copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> | 2026-02-10 10:53:49 +0000 |
|---|---|---|
| committer | copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> | 2026-02-10 10:53:49 +0000 |
| commit | ef7f1dbf1cbd781a5c8e081820a803c871b42d5e (patch) | |
| tree | c281b3641410be97ad3066673a31869209653afd /.github | |
| parent | 90fc3bc09b01953c3fa59e316bde8bf72318c045 (diff) | |
| download | LunaticChat-ef7f1dbf1cbd781a5c8e081820a803c871b42d5e.tar.gz LunaticChat-ef7f1dbf1cbd781a5c8e081820a803c871b42d5e.tar.bz2 LunaticChat-ef7f1dbf1cbd781a5c8e081820a803c871b42d5e.zip | |
Split Modrinth release workflow for Paper and Velocity with constants
Co-authored-by: m1sk9 <82575685+m1sk9@users.noreply.github.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yaml | 35 |
1 files changed, 24 insertions, 11 deletions
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 }} |
