ci(pm): add gitea release workflow

This commit is contained in:
2026-10-09 12:41:53 +03:00
parent 9e67513897
commit a99490ec05
17 changed files with 112 additions and 100 deletions
+6 -3
View File
@@ -6,6 +6,9 @@ const { System, Sdk, Haxe, Project } = require("gulp-haxetool");
const dateformat = require("dateformat");
const argv = require("yargs").argv;
const publish = require("./tasks/gulp-publish");
const os = require("os");
const resolvePath = (path) => path.replace("$HOME", os.homedir());
Project.useRuffle();
@@ -14,11 +17,11 @@ if (packageInfo.haxe) {
}
if (Config.SdkDir) {
Sdk.dir = Config.SdkDir;
Sdk.dir = resolvePath(Config.SdkDir);
}
if (Config.BuildDir) {
Haxe.buildDir = Config.BuildDir;
Haxe.buildDir = resolvePath(Config.BuildDir);
}
exports.clean = function clean() {
@@ -114,7 +117,7 @@ const server = new Project(
module.exports.publish = publish(
packageInfo.name,
packageInfo.version,
Config.PublishDir,
resolvePath(Config.PublishDir),
Config.PublishUrl,
);