Merged changes from https://github.com/Nomifactory/Nomifactory/tree/dev/buildtools made after February 2022 (when I helped @tracer4b get the build scripts at the time set up). CurseForge subsequently did its API changes so the old scripts don't work anymore. You will need to create a Secret called CFCORE_API_TOKEN which contains the CurseForge API authentication token you wish to use (for https://api.curseforge.com). When running build scripts locally, you need to have an environment variable set with the same name and value. This token allows the script to download mod jars required for building the server zip. Without this token, at the very least mods that disallow third-party downloads would return blank download links and that build target would fail. It might be needed to use the API at all, but @NotMyWing is our CICD author and resident expert, so I would defer to him on details. /* Commits */ * Switch API calls to CFCore (#914) Necessary to continue using the CurseForge API. * Propagate the CFCore token to GHA * Move download URL forging to fetchFileInfo * Add CurseForge Beta deployment workflow (#944) --------- Co-authored-by: Neeve <winwyv@gmail.com>
38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
import * as gulp from "gulp";
|
|
|
|
import pruneCacheTask from "./tasks/misc/pruneCache";
|
|
export const pruneCache = pruneCacheTask;
|
|
|
|
import sharedTasks from "./tasks/shared";
|
|
import clientTasks from "./tasks/client";
|
|
import serverTasks from "./tasks/server";
|
|
import langTasks from "./tasks/lang";
|
|
import mmcTasks from "./tasks/mmc";
|
|
|
|
export const buildClient = gulp.series(sharedTasks, clientTasks);
|
|
export const buildServer = gulp.series(sharedTasks, serverTasks);
|
|
export const buildLang = gulp.series(sharedTasks, langTasks);
|
|
export const buildAll = gulp.series(sharedTasks, gulp.series(clientTasks, serverTasks, langTasks));
|
|
export const buildMMC = gulp.series(sharedTasks, clientTasks, mmcTasks);
|
|
|
|
import checkTasks from "./tasks/checks";
|
|
export const check = gulp.series(checkTasks);
|
|
|
|
import * as zip from "./tasks/misc/zip";
|
|
export const zipClient = zip.zipClient;
|
|
export const zipServer = zip.zipServer;
|
|
export const zipLang = zip.zipLang;
|
|
export const zipAll = zip.zipAll;
|
|
export const zipMMC = zip.zipMMC;
|
|
|
|
import * as gha from "./tasks/misc/gha";
|
|
export const makeArtifactNames = gha.makeArtifactNames;
|
|
|
|
export { deployCurseForge, deployCurseForgeBeta } from "./tasks/deploy/curseforge";
|
|
|
|
import deployReleasesTask from "./tasks/deploy/releases";
|
|
export const deployReleases = deployReleasesTask;
|
|
|
|
import fireNightlyWebhookTask from "./tasks/misc/webhook";
|
|
export const fireNightlyWebhook = fireNightlyWebhookTask;
|