mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
build.yml - fix for gitversioning and psscriptroot
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -5,6 +5,8 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
$MSBuildPath = (&"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -prerelease -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe) | Out-String
|
||||
$MSBuildPath = $MSBuildPath.Trim();
|
||||
|
||||
# This variable is null in github actions
|
||||
if ($PSScriptRoot -eq $null) {
|
||||
$PSScriptRoot = "."
|
||||
}
|
||||
|
||||
# Stop the script if an error occurs
|
||||
$ErrorActionPreference = "Stop"
|
||||
$In = "$PSScriptRoot\build\Release\"
|
||||
|
||||
Reference in New Issue
Block a user