aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/push-to-modrinth.yaml
diff options
context:
space:
mode:
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