@@ -4,16 +4,16 @@ run-name: "Release #${{ github.run_number }}"
4
4
on :
5
5
workflow_call :
6
6
inputs :
7
- PROJECT_NAME :
7
+ project_name :
8
8
required : true
9
9
type : string
10
- PROJECT_VERSION :
10
+ project_version :
11
11
required : true
12
12
type : string
13
- MC_VERSION :
13
+ mc_version :
14
14
required : true
15
15
type : string
16
- CHANGELOG :
16
+ changelog :
17
17
required : true
18
18
type : string
19
19
@@ -37,44 +37,44 @@ jobs:
37
37
- name : Download cf modpack
38
38
uses : actions/download-artifact@v4.1.0
39
39
with :
40
- name : ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-cf
40
+ name : ${{ inputs.project_name }}-${{ inputs.project_version }}-cf
41
41
42
42
- name : Download serverpack
43
43
uses : actions/download-artifact@v4.1.0
44
44
with :
45
- name : ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-server
46
-
47
- - name : Upload Curseforge
48
- id : cf_release
49
- uses : SwitchAlpha/upload-curseforge-modpack-action@master
50
- with :
51
- api-token : ${{ secrets.CF_API_TOKEN }}
52
- project-id : ${{ env.CF_PROJECT_ID }}
53
- modpack-path : ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-cf.zip
54
- modpack-server-path : ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-server.zip
55
- changelog : ${{ inputs.CHANGELOG }}
56
- changelog-format : markdown
57
- game-version : ${{ inputs.MC_VERSION }}
58
- display-name : ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}
59
- server-display-name : ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-server
60
- release-type : ${{ env.RELEASE_TYPE }}
45
+ name : ${{ inputs.project_name }}-${{ inputs.project_version }}-server
46
+
47
+ # - name: Upload Curseforge
48
+ # id: cf_release
49
+ # uses: SwitchAlpha/upload-curseforge-modpack-action@master
50
+ # with:
51
+ # api-token: ${{ secrets.CF_API_TOKEN }}
52
+ # project-id: ${{ env.CF_PROJECT_ID }}
53
+ # modpack-path: ${{ inputs.project_name }}-${{ inputs.project_version }}-cf.zip
54
+ # modpack-server-path: ${{ inputs.project_name }}-${{ inputs.project_version }}-server.zip
55
+ # changelog: ${{ inputs.changelog }}
56
+ # changelog-format: markdown
57
+ # game-version: ${{ inputs.mc_version }}
58
+ # display-name: ${{ inputs.project_name }}-${{ inputs.project_version }}
59
+ # server-display-name: ${{ inputs.project_name }}-${{ inputs.project_version }}-server
60
+ # release-type: ${{ env.RELEASE_TYPE }}
61
61
62
62
- name : Send Discord message
63
63
uses : tsickert/discord-webhook@v5.4.0
64
64
with :
65
65
webhook-url : ${{secrets.RELEASES_1_20}}
66
66
username : " TerraFirmaGreg"
67
67
avatar-url : " https://raw.githubusercontent.com/TerraFirmaGreg-Team/.github/main/branding/curseforge_logo.png"
68
- embed-title : Release ${{ inputs.PROJECT_VERSION }}
69
- embed-url : https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/releases/tag/${{ inputs.PROJECT_VERSION }}
68
+ embed-title : Release ${{ inputs.project_version }}
69
+ embed-url : https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/releases/tag/${{ inputs.project_version }}
70
70
embed-thumbnail-url : https://raw.githubusercontent.com/TerraFirmaGreg-Team/.github/main/branding/logo_new_year.png
71
71
embed-description : |
72
72
**Release Type**: `${{ env.RELEASE_TYPE }}`
73
- **GameVersion**: `${{ inputs.MC_VERSION }}`
74
- **Website Link**: [CurseForge](https://www.curseforge.com/minecraft/modpacks/terrafirmagreg/files/${{ steps.cf_release.outputs.id }} )
73
+ **GameVersion**: `${{ inputs.mc_version }}`
74
+ **Website Link**: [CurseForge](https://www.curseforge.com/minecraft/modpacks/terrafirmagreg/files/5012772 )
75
75
76
76
**Changelog**
77
- ```${{ inputs.CHANGELOG }}```
77
+ ```${{ inputs.changelog }}```
78
78
embed-color : " #57F287"
79
79
80
80
release-github :
@@ -91,13 +91,13 @@ jobs:
91
91
with :
92
92
prerelease : false
93
93
generate_release_notes : true
94
- name : ${{ inputs.PROJECT_VERSION }}
94
+ name : ${{ inputs.project_version }}
95
95
body : ${{ inputs.CHANGELOG }}
96
96
files : |
97
- ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-cf.zip
98
- ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-mmc.zip
99
- ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-server.zip
100
- tag_name : ${{ inputs.PROJECT_VERSION }}
97
+ ${{ inputs.project_name }}-${{ inputs.project_version }}-cf.zip
98
+ ${{ inputs.project_name }}-${{ inputs.project_version }}-mmc.zip
99
+ ${{ inputs.project_name }}-${{ inputs.project_version }}-server.zip
100
+ tag_name : ${{ inputs.project_version }}
101
101
env :
102
102
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103
103
@@ -128,13 +128,13 @@ jobs:
128
128
# with:
129
129
# api-token: ${{ secrets.MODRINTH_API_TOKEN }}
130
130
# project-id: ${{ env.MODRINTH_PROJECT_ID }}
131
- # modpack-path: ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-mrd.zip
132
- # modpack-server-path: ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-server.zip
131
+ # modpack-path: ${{ inputs.project_name }}-${{ inputs.project_version }}-mrd.zip
132
+ # modpack-server-path: ${{ inputs.project_name }}-${{ inputs.project_version }}-server.zip
133
133
# changelog: "${{ inputs.CHANGELOG }}"
134
134
# changelog-format: markdown
135
- # game-version: ${{ inputs.mcversion }}
136
- # display-name: ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}
137
- # server-display-name: ${{ inputs.PROJECT_NAME }}-${{ inputs.PROJECT_VERSION }}-server
135
+ # game-version: ${{ inputs.mc_version }}
136
+ # display-name: ${{ inputs.project_name }}-${{ inputs.project_version }}
137
+ # server-display-name: ${{ inputs.project_name }}-${{ inputs.project_version }}-server
138
138
# release-type: ${{ env.RELEASE_TYPE }}
139
139
140
140
close-fixed-issues :
@@ -149,7 +149,7 @@ jobs:
149
149
uses : juraj-hrivnak/close-issues-based-on-label@master
150
150
env :
151
151
LABEL : " 2. status: fixed in dev"
152
- VERSION : ${{ inputs.PROJECT_VERSION }}
152
+ VERSION : ${{ inputs.project_version }}
153
153
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
154
154
155
155
0 commit comments