blob: 5da29eea4efa3263afb47252e83149da6b98a6a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
|