Skip to content

Commit cb599af

Browse files
committed
Make sure correct step output is set
Also simplifies directories for an always-release binary.
1 parent 5fad092 commit cb599af

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
run: |
134134
name="$(basename "$ZIP_FILE" ".zip")"
135135
printf "::set-output name=msi::%s\n" "$name.msi"
136-
msbuild .\build\windows\gh.wixproj /p:SourceDir="$PWD" /p:OutputName="$name" /p:ProductVersion="${GITHUB_REF#refs/tags/}"
136+
msbuild .\build\windows\gh.wixproj /p:SourceDir="$PWD" /p:OutputPath="$PWD" /p:OutputName="$name" /p:ProductVersion="${GITHUB_REF#refs/tags/}"
137137
- name: Obtain signing cert
138138
id: obtain_cert
139139
env:

build/windows/gh.wixproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
4+
<Configuration>Release</Configuration>
55
<Platform Condition="'$(Platform)' == ''">x64</Platform>
66
<ProductVersion Condition="'$(ProductVersion)' == ''">0.1.0</ProductVersion>
77
<OutputName Condition="'$(OutputName)' == ''">$(MSBuildProjectName)</OutputName>
88
<OutputType>package</OutputType>
9-
<RepoPath>$(MSBuildProjectDirectory)\..\..</RepoPath>
10-
<OutputPath>$(RepoPath)\bin\$(Platform)\$(Configuration)\</OutputPath>
11-
<IntermediateOutputPath>$(RepoPath)\bin\obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
9+
<RepoPath>$([MSBuild]::NormalizeDirectory($(MSBuildProjectDirectory)\..\..))</RepoPath>
10+
<OutputPath Condition="'$(OutputPath)' == ''">$(RepoPath)bin\$(Platform)\</OutputPath>
11+
<IntermediateOutputPath>$(RepoPath)bin\obj\$(Platform)\</IntermediateOutputPath>
1212
<DefineConstants>
1313
$(DefineConstants);
1414
ProductVersion=$(ProductVersion);
@@ -31,5 +31,9 @@
3131
<WixExtension Include="WixUIExtension"/>
3232
<WixExtension Include="WixUtilExtension"/>
3333
</ItemGroup>
34+
<Target Name="SetStepOutput" AfterTargets="Build" Condition="'$(GITHUB_ACTIONS)' != ''">
35+
<!-- Make sure the correct target path is always set as the step output -->
36+
<Message Importance="high" Text="::set-output name=msi::$(TargetPath)"/>
37+
</Target>
3438
<Import Project="$(WixTargetsPath)"/>
3539
</Project>

0 commit comments

Comments
 (0)