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
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
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 = (&"${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();
|
$MSBuildPath = $MSBuildPath.Trim();
|
||||||
|
|
||||||
|
# This variable is null in github actions
|
||||||
|
if ($PSScriptRoot -eq $null) {
|
||||||
|
$PSScriptRoot = "."
|
||||||
|
}
|
||||||
|
|
||||||
# Stop the script if an error occurs
|
# Stop the script if an error occurs
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
$In = "$PSScriptRoot\build\Release\"
|
$In = "$PSScriptRoot\build\Release\"
|
||||||
|
|||||||
Reference in New Issue
Block a user