ci: Mark modrinth deployment url

This commit is contained in:
Linnea Gräf
2024-11-17 04:33:14 +01:00
parent 88b0b2cadc
commit 762fb40215

View File

@@ -7,9 +7,15 @@ on:
types: types:
- published - published
name: Publishing
jobs: jobs:
upload-to-modrinth: upload-to-modrinth:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: "Modrinth"
environment:
name: Modrinth
url: ${{ steps.mc-publish.outputs.modrinth-url }}
steps: steps:
- run: | - run: |
gh release download "$TAG" -p '*.jar' --repo "$REPO" gh release download "$TAG" -p '*.jar' --repo "$REPO"
@@ -22,6 +28,7 @@ jobs:
env: env:
CHANGELOG: ${{ github.event.release.body }} CHANGELOG: ${{ github.event.release.body }}
- uses: Kir-Antipov/mc-publish@v3.3 - uses: Kir-Antipov/mc-publish@v3.3
id: mc-publish
with: with:
modrinth-id: IJNUBZ2a modrinth-id: IJNUBZ2a
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} modrinth-token: ${{ secrets.MODRINTH_TOKEN }}