mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
deployment: add Modrinth API key to deployment scripts and update channel naming conventions
This commit is contained in:
@@ -34,6 +34,8 @@ jobs:
|
||||
run: ./gradlew :tools:deployment:shadowJar
|
||||
|
||||
- name: Deploy
|
||||
env:
|
||||
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }}
|
||||
run:
|
||||
cd tools/deployment/build/libs &&
|
||||
java -jar deployment.jar ../../../../plugins/fancyholograms/release_deployment_config.json
|
||||
|
||||
@@ -34,6 +34,8 @@ jobs:
|
||||
run: ./gradlew :tools:deployment:shadowJar
|
||||
|
||||
- name: Deploy
|
||||
env:
|
||||
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }}
|
||||
run:
|
||||
cd tools/deployment/build/libs &&
|
||||
java -jar deployment.jar ../../../../plugins/fancyholograms/snapshot_deployment_config.json
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"1.21.3",
|
||||
"1.21.4"
|
||||
],
|
||||
"channel": "release",
|
||||
"channel": "RELEASE",
|
||||
"loaders": [
|
||||
"paper",
|
||||
"folia"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"1.21.3",
|
||||
"1.21.4"
|
||||
],
|
||||
"channel": "alpha",
|
||||
"channel": "ALPHA",
|
||||
"loaders": [
|
||||
"paper",
|
||||
"folia"
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
package de.oliver.deployment.modrinth;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public record CreateVersionRequest(
|
||||
String name,
|
||||
@SerializedName("version_number") String versionName,
|
||||
String changelog,
|
||||
String[] dependencies,
|
||||
@SerializedName("game_versions") String[] gameVersions,
|
||||
@SerializedName("version_type") String versionType,
|
||||
String[] loaders,
|
||||
boolean featured,
|
||||
String status,
|
||||
@SerializedName("requested_status") String requestedStatus,
|
||||
@SerializedName("project_id") String projectId,
|
||||
@SerializedName("file_parts") String[] fileParts,
|
||||
@SerializedName("primary_file") String primaryFile
|
||||
) {
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public class ModrinthService {
|
||||
changelog,
|
||||
new ArrayList<>(),
|
||||
Arrays.asList(config.supportedVersions()),
|
||||
ProjectVersion.VersionType.ALPHA,
|
||||
ProjectVersion.VersionType.valueOf(config.channel()),
|
||||
Arrays.asList(config.loaders()),
|
||||
config.featured(),
|
||||
config.projectID(),
|
||||
|
||||
Reference in New Issue
Block a user