forked from IAmBatby/LethalLevelLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.27 KB
/
release-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
43
44
45
46
name: Release on Curseforge
on:
workflow_call:
secrets:
curseforge-token:
required: true
project-id:
required: true
jobs:
curseforge:
name: Upload
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v4
- name: Download Curseforge artifact
uses: actions/download-artifact@v4
with:
name: curseforge-build
- name: Download Versions artifact
uses: actions/download-artifact@v4
with:
name: versions
- name: Set MOD_NAME environment variable
run: echo "MOD_NAME=$(cat ./*/dist/name.txt )" >> $GITHUB_ENV
- name: Set MOD_VERSION environment variable
run: echo "MOD_VERSION=$(cat ./*/dist/version.txt )" >> $GITHUB_ENV
- name: Set ZIP_PATH environment variable
run: echo "ZIP_PATH=./${{ env.MOD_NAME }}/dist/curseforge.zip" >> $GITHUB_ENV
- name: "Upload to CurseForge"
uses: itsmeow/curseforge-upload@v3
with:
token: ${{ secrets.curseforge-token }}
project_id: ${{ secrets.project-id }}
game_endpoint: "lethal-company"
game_versions: "0.50.0"
file_path: ${{ env.ZIP_PATH }}
display_name: ${{ env.MOD_NAME }} v${{ env.MOD_VERSION }}