How do I use PowerShell with Gitlab CI in Gitlab Pages?

前端 未结 3 1318
遇见更好的自我
遇见更好的自我 2021-02-14 18:12

How do I use PowerShell commands/scripts with Gitlab CI in a .gitlab-ci.yml file which is used to deploy to gitlab pages?

I am trying to execute the b

3条回答
  •  不思量自难忘°
    2021-02-14 18:50

    For anyone who is having trouble launching grunt within their gitlab CI/CD via a powershell file, add this line to the top of your file:

    $env:path += ";" + (Get-Item "Env:AppData").Value + "\npm"
    

提交回复
热议问题