aboutsummaryrefslogtreecommitdiff
path: root/ci/install.taskfile.yaml
blob: 587ac86e3d7852f9e7d6ec4a7e61a6f987988c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# https://taskfile.dev

#Called by the vnbuild system to produce builds for my website
#https://www.vaughnnugent.com/resources/software

version: "3"

tasks:

  install:
    internal: true
    cmds:
    #make the plugin directory
    - cmd: powershell -Command "mkdir {{.DIR}} -Force"
      ignore_error: true
    - cd {{.DIR}} && powershell "{{ .PROJECT_DIR }}/install.ps1" -BaseUrl {{.BUILDS_URL}} -ModuleName {{.MODULE_NAME}} -ProjectName {{.PROJECT_NAME}} -FileName {{.FILE_NAME}} -Version {{.VERSION}}
    - cd {{.DIR}} && tar -xzf {{.FILE_NAME}}
    #remove the archive file
    - cd {{.DIR}} && powershell -Command "rm {{.FILE_NAME}}"
    #remove all pckage.json files that could cause build issues
    - cmd: cd {{.DIR}} && powershell 'Get-ChildItem -Path . -Recurse -File -Filter "package.json" | Remove-Item -Force'
      ignore_error: true