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

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

  dev-update:
    cmds:
     - cd front-end/ && npm update