aboutsummaryrefslogtreecommitdiff
path: root/Module.Taskfile.yaml
blob: 0c1783f122e6c5d6959133cba6146884a3e977ef (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

#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:
    
  #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: