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

前端 未结 3 984
谎友^
谎友^ 2021-02-14 18:28

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

    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"
    

提交回复
热议问题