blob: 18ecf4a046d8d9b4cb42d4b261cfd4514debe515 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
#
# SPDX-License-Identifier: CC0-1.0
on:
release:
types:
- published
name: Publishing
jobs:
upload-to-modrinth:
runs-on: ubuntu-latest
name: "Modrinth"
environment:
name: Modrinth
url: ${{ steps.mc-publish.outputs.modrinth-url }}
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
id: mc-publish
with:
modrinth-id: IJNUBZ2a
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files: "*.jar"
loaders: fabric
version: ${{ github.event.release.tag_name }}
|