mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
deployment: Update configuration to use version path for plugin deployment
This commit is contained in:
@@ -6,7 +6,7 @@ public record Configuration(
|
||||
@SerializedName("project_id") String projectID,
|
||||
@SerializedName("plugin_jar_path") String pluginJarPath,
|
||||
@SerializedName("changelog_path") String changeLogPath,
|
||||
String version,
|
||||
@SerializedName("version_path") String versionPath,
|
||||
@SerializedName("supported_versions") String[] supportedVersions,
|
||||
String channel,
|
||||
@SerializedName("loaders") String[] loaders,
|
||||
|
||||
@@ -20,10 +20,11 @@ public class ModrinthService {
|
||||
|
||||
public void deployPlugin(Configuration config) throws IOException {
|
||||
String changelog = Files.readString(Path.of(config.changeLogPath()));
|
||||
String version = Files.readString(Path.of(config.versionPath()));
|
||||
|
||||
CreateVersionRequest req = new CreateVersionRequest(
|
||||
config.version(),
|
||||
config.version(),
|
||||
version,
|
||||
version,
|
||||
changelog,
|
||||
config.supportedVersions(),
|
||||
config.channel(),
|
||||
|
||||
Reference in New Issue
Block a user