From 626a8d8d3df8880991684d6d1a06b82f6685b51a Mon Sep 17 00:00:00 2001 From: vnugent Date: Sun, 28 Jan 2024 19:23:18 -0500 Subject: initial commit --- Module.Taskfile.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Module.Taskfile.yaml (limited to 'Module.Taskfile.yaml') diff --git a/Module.Taskfile.yaml b/Module.Taskfile.yaml new file mode 100644 index 0000000..5da29ee --- /dev/null +++ b/Module.Taskfile.yaml @@ -0,0 +1,45 @@ +# https://taskfile.dev + +#Called by the vnbuild system to produce builds for my website +#https://www.vaughnnugent.com/resources/software + +#This taskfile performs the build operations for a module, it handles +#git code updates, msbuild on solutions, and sleet NuGet feed pushes. + +#this file must be in the same directory as the solution file + +version: '3' + +tasks: + +#called by build pipeline to sync repo + update: + cmds: + - git remote update + - git reset --hard + - git pull origin {{.BRANCH_NAME}} --verify-signatures + + +#called by build pipeline to build module + build: + cmds: + - echo "building module {{.MODULE_NAME}}" + + postbuild_success: + cmds: + + #git archive in the module binry output directory + - git archive --format {{.ARCHIVE_FILE_FORMAT}} --output {{.ARCHIVE_FILE_NAME}} HEAD + + postbuild_failed: + cmds: + - echo "postbuild failed {{.MODULE_NAME}}" + + #called by build pipeline to clean module + clean: + cmds: + #clean solution + - cmd: powershell -Command "rm out/ -Recurse " + ignore_error: true + + -- cgit