-
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (43 loc) · 1.43 KB
/
modrinth.yml
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
38
39
40
41
42
43
44
45
name: Modrinth release
on: workflow_dispatch
jobs:
version:
name: Detect version
uses: ./.github/workflows/version.yml
build:
name: Build
needs: version
uses: ./.github/workflows/build.yml
with:
version: ${{ needs.version.outputs.version }}
upload:
name: Upload
needs:
- version
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: gradle-build
- name: Read VERSIONS.txt
id: supported_versions
uses: juliangruber/read-file-action@v1
with:
path: ./VERSIONS.txt
- uses: Kir-Antipov/[email protected]
with:
name: ${{ needs.version.outputs.version }}
version: ${{ needs.version.outputs.version }}
files: ${{ needs.build.outputs.artifact }}
version-type: ${{ needs.version.outputs.release-type }}
changelog: |
Changelog is available on
[GitHub](https://github.com/turikhay/MapModCompanion/releases/tag/v${{ needs.version.outputs.version }})
game-versions: ${{ steps.supported_versions.outputs.content }}
loaders: bukkit spigot paper bungeecord waterfall velocity
modrinth-id: UO7aDcrF
modrinth-featured: ${{ needs.version.outputs.pre-release != true }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}