aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/push-to-modrinth.yaml
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-12 14:32:41 +0200
committerGitHub <noreply@github.com>2024-04-12 14:32:41 +0200
commitafd3f0f861ebe7f8957eb6abc6e19f92c7b5896a (patch)
tree0e7990ed1e7083dd4da5f90a842d0122919f8c7c /.github/workflows/push-to-modrinth.yaml
parenta4a1c15a0b0de01e862c0f11882b45fee2c0cca7 (diff)
downloadNotEnoughUpdates-afd3f0f861ebe7f8957eb6abc6e19f92c7b5896a.tar.gz
NotEnoughUpdates-afd3f0f861ebe7f8957eb6abc6e19f92c7b5896a.tar.bz2
NotEnoughUpdates-afd3f0f861ebe7f8957eb6abc6e19f92c7b5896a.zip
Add in-game updater (#1050)
Co-authored-by: IRONM00N <64110067+IRONM00N@users.noreply.github.com>
Diffstat (limited to '.github/workflows/push-to-modrinth.yaml')
-rw-r--r--.github/workflows/push-to-modrinth.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/push-to-modrinth.yaml b/.github/workflows/push-to-modrinth.yaml
new file mode 100644
index 00000000..930ca13c
--- /dev/null
+++ b/.github/workflows/push-to-modrinth.yaml
@@ -0,0 +1,28 @@
+on:
+ release:
+ types:
+ - published
+
+jobs:
+ upload-to-modrinth:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: dsaltares/fetch-gh-release-asset@master
+ with:
+ version: ${{ release.id }}
+ regex: true
+ file: "*.jar"
+ token: ${{ secrets.GITHUB_TOKEN }}
+ - run: |
+ printf %s "$CHANGELOG" > CHANGELOG.md
+ env:
+ CHANGELOG: ${{ release.body }}
+ - uses: Kir-Antipov/mc-publish@v3.3
+ with:
+ modrinth-id: GGamhqbw
+ modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
+ files: "*.jar"
+ loaders: forge
+ game-versions: 1.8.9
+ version: ${{ release.tag_name }}
+ # TODO: version-type: release