Files
Firmament/.github/workflows/publish-github-to-modrinth.yml
Linnea Gräf 4e1cda1d64 Fix github release download
[no changelog]
2024-07-06 03:17:55 +02:00

32 lines
1.0 KiB
YAML

# SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
#
# SPDX-License-Identifier: CC0-1.0
on:
release:
types:
- published
jobs:
upload-to-modrinth:
runs-on: ubuntu-latest
steps:
- run: |
gh release download "$TAG" -p '*.jar' --repo "$REPO"
env:
TAG: ${{ github.event.release.tag_name }}
REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
- run: |
printf %s "$CHANGELOG" > CHANGELOG.md
env:
CHANGELOG: ${{ github.event.release.body }}
- uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: IJNUBZ2a
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files: "*.jar"
loaders: fabric
game-versions: 1.20.6
version: ${{ github.event.release.tag_name }}