ci(pm): add gitea release workflow
This commit is contained in:
+6
-3
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user