blob: 6da4b8551d84b405d61b91f1369161e9742f6881 (
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
|
#This allows the Task build system to run commands to build components of the project
#You must install Task before executing this file, https://taskfile.dev
version: '3'
tasks:
#update project source code
update:
cmds:
- git reset --hard
- git remote update
- git pull origin {{.BRANCH_NAME}} --verify-signatures
#re-write semver for back-end after hard reset
- dotnet-gitversion.exe /updateprojectfiles
build:
cmds:
#overwrite front-end version, this must be run on build hook because update can cause the version to change
- cmd: cd front-end/ && npm version {{ .BUILD_VERSION }}
ignore_error: true #error if run when version is not updated
#copy artifacts to temp directory
postbuild_success:
cmds:
#git archive in the module directory
- git archive --format {{.ARCHIVE_FILE_FORMAT}} --output {{.ARCHIVE_FILE_NAME}} HEAD
#clean hook
clean:
cmds:
dev-update:
cmds:
- cd front-end/ && npm update
|