Skip to content

Commit

Permalink
Add modrinth auto publishing
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
nea89o committed Jun 1, 2024
1 parent fc7fde2 commit 60299e6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-github-to-modrinth.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SPDX-FileCopyrightText: 2023 Linnea Gräf <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0

on:
release:
types:
- published

jobs:
upload-to-modrinth:
runs-on: ubuntu-latest
steps:
- uses: dsaltares/fetch-gh-release-asset@master
with:
version: ${{ github.event.release.id }}
regex: true
file: ".*\\.jar"
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
printf %s "$CHANGELOG" > CHANGELOG.md
env:
CHANGELOG: ${{ github.event.release.body }}
- uses: Kir-Antipov/[email protected]
with:
modrinth-id: IJNUBZ2a
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files: "*.jar"
loaders: fabric
game-versions: 1.20.6
version: ${{ github.event.release.tag_name }}

0 comments on commit 60299e6

Please sign in to comment.