-
Notifications
You must be signed in to change notification settings - Fork 23
/
action.yml
402 lines (402 loc) · 14.1 KB
/
action.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
# ######################################################################## #
# WARNING: AUTO-GENERATED FILE - DO NOT EDIT! #
# #
# Please be advised that this is an auto-generated file and should NOT be #
# modified. Any changes made to this file WILL BE OVERWRITTEN. #
# #
# To make changes to the contents of this file, please modify the #
# action.template.yml file instead. This will ensure that your changes are #
# properly reflected in the auto-generated file. #
# ######################################################################## #
name: mc-publish
description: Your one-stop GitHub Action for seamless Minecraft project
publication across various platforms.
author: Kir-Antipov
branding:
color: purple
icon: box
inputs:
modrinth-id:
description: The unique identifier of your Modrinth project.
required: false
default: ${undefined}
modrinth-featured:
description: Set to true to feature the version on Modrinth; false otherwise.
required: false
default: ${undefined}
modrinth-unfeature-mode:
description: Sets the behavior for unfeaturing older Modrinth versions.
default: subset
required: false
modrinth-token:
description: Your Modrinth API token.
required: false
default: ${undefined}
curseforge-id:
description: The unique identifier of your CurseForge project.
required: false
default: ${undefined}
curseforge-token:
description: Your CurseForge API token.
required: false
default: ${undefined}
github-tag:
description: The tag name for the release where assets will be uploaded.
required: false
default: ${undefined}
github-generate-changelog:
description: Set to true to generate a changelog automatically for this release;
false otherwise. Ignored if the GitHub Release already exists.
required: false
default: ${undefined}
github-draft:
description: Set to true to create a draft release; false otherwise. Ignored if
the GitHub Release already exists.
required: false
default: ${undefined}
github-prerelease:
description: Set to true to mark the release as a prerelease; false otherwise.
Ignored if the GitHub Release already exists.
required: false
default: ${undefined}
github-commitish:
description: Defines the commitish value that determines where the Git tag is
created from. Can be any branch or commit SHA. Ignored if the Git tag
already exists.
required: false
default: ${undefined}
github-discussion:
description: If specified, creates and links a discussion of the specified
**existing** category to the release. Ignored if the GitHub Release
already exists.
required: false
default: ${undefined}
github-token:
description: Your GitHub API token.
required: false
default: ${undefined}
files:
description: An array of globs determining which files to upload.
default: |
build/libs/!(*-@(dev|sources|javadoc)).jar
build/libs/*-@(dev|sources|javadoc).jar
required: false
files-primary:
description: A glob determining the primary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
files-secondary:
description: A glob determining the secondary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
name:
description: The name of the version.
required: false
default: ${undefined}
version:
description: The version number.
required: false
default: ${undefined}
version-type:
description: The version type - alpha, beta, or release.
required: false
default: ${undefined}
changelog:
description: The changelog for this version.
required: false
default: ${undefined}
changelog-file:
description: A glob pointing to the changelog file.
required: false
default: ${undefined}
loaders:
description: An array of supported mod loaders.
required: false
default: ${undefined}
game-versions:
description: An array of supported Minecraft versions.
required: false
default: ${undefined}
dependencies:
description: An array of dependencies required by your project.
required: false
default: ${undefined}
version-resolver:
description: Controls the method used to automatically resolve game versions.
deprecationMessage: Please, use 'game-version-filter' instead.
required: false
default: ${undefined}
game-version-filter:
description: Controls the method used to filter game versions.
default: releases
required: false
java:
description: An array of Java versions compatible with your project.
required: false
default: ${undefined}
retry-attempts:
description: Defines the maximum number of asset publishing attempts.
default: 2
required: false
retry-delay:
description: Specifies the delay (in milliseconds) between asset publishing attempts.
default: 10000
required: false
fail-mode:
description: Controls how the action responds to errors during the mod
publishing process.
default: fail
required: false
modrinth-files:
description: An array of globs determining which files to upload.
default: ${undefined}
required: false
curseforge-files:
description: An array of globs determining which files to upload.
default: ${undefined}
required: false
github-files:
description: An array of globs determining which files to upload.
default: ${undefined}
required: false
modrinth-files-primary:
description: A glob determining the primary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
curseforge-files-primary:
description: A glob determining the primary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
github-files-primary:
description: A glob determining the primary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
modrinth-files-secondary:
description: A glob determining the secondary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
curseforge-files-secondary:
description: A glob determining the secondary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
github-files-secondary:
description: A glob determining the secondary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
modrinth-name:
description: The name of the version.
required: false
default: ${undefined}
curseforge-name:
description: The name of the version.
required: false
default: ${undefined}
github-name:
description: The name of the version.
required: false
default: ${undefined}
modrinth-version:
description: The version number.
required: false
default: ${undefined}
curseforge-version:
description: The version number.
required: false
default: ${undefined}
github-version:
description: The version number.
required: false
default: ${undefined}
modrinth-version-type:
description: The version type - alpha, beta, or release.
required: false
default: ${undefined}
curseforge-version-type:
description: The version type - alpha, beta, or release.
required: false
default: ${undefined}
github-version-type:
description: The version type - alpha, beta, or release.
required: false
default: ${undefined}
modrinth-changelog:
description: The changelog for this version.
required: false
default: ${undefined}
curseforge-changelog:
description: The changelog for this version.
required: false
default: ${undefined}
github-changelog:
description: The changelog for this version.
required: false
default: ${undefined}
modrinth-changelog-file:
description: A glob pointing to the changelog file.
required: false
default: ${undefined}
curseforge-changelog-file:
description: A glob pointing to the changelog file.
required: false
default: ${undefined}
github-changelog-file:
description: A glob pointing to the changelog file.
required: false
default: ${undefined}
modrinth-loaders:
description: An array of supported mod loaders.
required: false
default: ${undefined}
curseforge-loaders:
description: An array of supported mod loaders.
required: false
default: ${undefined}
github-loaders:
description: An array of supported mod loaders.
required: false
default: ${undefined}
modrinth-game-versions:
description: An array of supported Minecraft versions.
required: false
default: ${undefined}
curseforge-game-versions:
description: An array of supported Minecraft versions.
required: false
default: ${undefined}
github-game-versions:
description: An array of supported Minecraft versions.
required: false
default: ${undefined}
modrinth-dependencies:
description: An array of dependencies required by your project.
required: false
default: ${undefined}
curseforge-dependencies:
description: An array of dependencies required by your project.
required: false
default: ${undefined}
github-dependencies:
description: An array of dependencies required by your project.
required: false
default: ${undefined}
modrinth-version-resolver:
description: Controls the method used to automatically resolve game versions.
deprecationMessage: Please, use 'game-version-filter' instead.
required: false
default: ${undefined}
curseforge-version-resolver:
description: Controls the method used to automatically resolve game versions.
deprecationMessage: Please, use 'game-version-filter' instead.
required: false
default: ${undefined}
github-version-resolver:
description: Controls the method used to automatically resolve game versions.
deprecationMessage: Please, use 'game-version-filter' instead.
required: false
default: ${undefined}
modrinth-game-version-filter:
description: Controls the method used to filter game versions.
default: ${undefined}
required: false
curseforge-game-version-filter:
description: Controls the method used to filter game versions.
default: ${undefined}
required: false
github-game-version-filter:
description: Controls the method used to filter game versions.
default: ${undefined}
required: false
modrinth-java:
description: An array of Java versions compatible with your project.
required: false
default: ${undefined}
curseforge-java:
description: An array of Java versions compatible with your project.
required: false
default: ${undefined}
github-java:
description: An array of Java versions compatible with your project.
required: false
default: ${undefined}
modrinth-retry-attempts:
description: Defines the maximum number of asset publishing attempts.
default: ${undefined}
required: false
curseforge-retry-attempts:
description: Defines the maximum number of asset publishing attempts.
default: ${undefined}
required: false
github-retry-attempts:
description: Defines the maximum number of asset publishing attempts.
default: ${undefined}
required: false
modrinth-retry-delay:
description: Specifies the delay (in milliseconds) between asset publishing attempts.
default: ${undefined}
required: false
curseforge-retry-delay:
description: Specifies the delay (in milliseconds) between asset publishing attempts.
default: ${undefined}
required: false
github-retry-delay:
description: Specifies the delay (in milliseconds) between asset publishing attempts.
default: ${undefined}
required: false
modrinth-fail-mode:
description: Controls how the action responds to errors during the mod
publishing process.
default: ${undefined}
required: false
curseforge-fail-mode:
description: Controls how the action responds to errors during the mod
publishing process.
default: ${undefined}
required: false
github-fail-mode:
description: Controls how the action responds to errors during the mod
publishing process.
default: ${undefined}
required: false
outputs:
modrinth-id:
description: The unique identifier of your Modrinth project.
modrinth-version:
description: The unique identifier of the version published on Modrinth by this action.
modrinth-url:
description: The URL directing to the newly published version on Modrinth.
modrinth-files:
description: Array of objects, each containing details about the files published
for the new version on Modrinth, such as file `name`, `id`, and download
`url`.
curseforge-id:
description: The unique identifier of your CurseForge project.
curseforge-version:
description: The unique identifier of the version published on CurseForge by
this action.
curseforge-url:
description: The URL directing to the newly published version on CurseForge.
curseforge-files:
description: Array of objects, each containing details about the files published
for the new version on CurseForge, such as file `name`, `id`, and download
`url`.
github-repo:
description: The full repository name on GitHub, formatted as 'username/repository'.
github-tag:
description: The Git tag associated with the new or updated release published on GitHub.
github-url:
description: The URL directing to the newly published version on GitHub.
github-files:
description: Array of objects, each containing details about the files published
for the new version on GitHub, such as file `name`, `id`, and download
`url`.
runs:
using: node16
main: dist/index.js