aboutsummaryrefslogtreecommitdiff
path: root/Taskfile.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'Taskfile.yaml')
-rw-r--r--Taskfile.yaml12
1 files changed, 4 insertions, 8 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml
index bb95e21..2857d21 100644
--- a/Taskfile.yaml
+++ b/Taskfile.yaml
@@ -12,7 +12,6 @@ version: '3'
vars:
TARGET: '{{.USER_WORKING_DIR}}/bin'
RELEASE_DIR: "./bin/release/{{.TARGET_FRAMEWORK}}/publish"
- SOURCE_OUT: "{{.USER_WORKING_DIR}}/bin/source"
tasks:
@@ -37,8 +36,7 @@ tasks:
postbuild_failed:
dir: '{{.USER_WORKING_DIR}}'
- cmds:
- - echo "postbuild failed {{.PROJECT_NAME}}"
+ cmds: []
postbuild:
@@ -49,7 +47,6 @@ tasks:
BUILD_OUT: "{{.USER_WORKING_DIR}}/bin/{{.BUILD_MODE}}/{{.TARGET_FRAMEWORK}}/publish"
cmds:
-
#copy license and readme to target
- cd .. && powershell -Command "Copy-Item -Path ./build.readme.md -Destination '{{.BUILD_OUT}}/readme.md'"
@@ -67,8 +64,7 @@ tasks:
#Remove the output dirs on clean
clean:
dir: '{{.USER_WORKING_DIR}}'
+ ignore_error: true
cmds:
- - cmd: powershell Remove-Item -Recurse './bin'
- ignore_error: true
- - cmd: powershell Remove-Item -Recurse './obj'
- ignore_error: true
+ - for: ['bin/', 'obj/']
+ cmd: powershell Remove-Item -Recurse '{{.ITEM}}'