-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (40 loc) · 1.28 KB
/
curseforge.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
name: CurseForge 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_CF.txt
id: supported_versions
run: |
echo "list=$(cat VERSIONS_CF.txt | paste -s -d"," -)" >> $GITHUB_OUTPUT
- uses: itsmeow/[email protected]
with:
token: ${{ secrets.CURSEFORGE_TOKEN }}
game_endpoint: "bukkit"
project_id: "674380"
release_type: ${{ needs.version.outputs.release-type }}
display_name: ${{ needs.version.outputs.version }}
changelog: |
Changelog is available on
[GitHub](https://github.com/turikhay/MapModCompanion/releases/tag/v${{ needs.version.outputs.version }})
game_versions: ${{ steps.supported_versions.outputs.list }}
file_path: ${{ needs.build.outputs.artifact }}