diff options
author | Linnea Gräf <nea@nea.moe> | 2024-06-01 02:09:54 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-06-01 02:09:54 +0200 |
commit | 60299e62abb81d47be106b3b77acc38312664b00 (patch) | |
tree | bb1c2a45cc56e5dd4c872da5ad975a078bc58baa /.github | |
parent | fc7fde2c9b8516543c81791ecad355b0aecfffe6 (diff) | |
download | firmament-60299e62abb81d47be106b3b77acc38312664b00.tar.gz firmament-60299e62abb81d47be106b3b77acc38312664b00.tar.bz2 firmament-60299e62abb81d47be106b3b77acc38312664b00.zip |
Add modrinth auto publishing
[no changelog]
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/publish-github-to-modrinth.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/publish-github-to-modrinth.yml b/.github/workflows/publish-github-to-modrinth.yml new file mode 100644 index 0000000..fcd7bcd --- /dev/null +++ b/.github/workflows/publish-github-to-modrinth.yml @@ -0,0 +1,31 @@ +# 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: + - 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/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 }} |