File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3939 - name : Build
4040 run : dotnet build RandomGen/RandomGen.sln -c Release -p:Platform="${{ matrix.platform }}"
4141
42+ - name : Publish
43+ run : dotnet publish RandomGen/RandomGen.sln -c Release -p:Platform="${{ matrix.platform }}" -o ./Publish/${{ matrix.platform }}
44+
4245 - name : Get version
4346 id : get_version
4447 shell : bash
7073 New-Item -ItemType Directory -Force -Path "$artifactDir/RandomGen"
7174
7275 # Define the direct path to the build output
73- $buildOutput = "RandomGen/Community.PowerToys.Run.Plugin.RandomGen/bin/${{ matrix.platform }}/Release"
76+ $buildOutput = "./Publish/${{ matrix.platform }}"
77+
78+ # Fallback to searching for the correct path if the direct path doesn't exist
79+ if (-not (Test-Path $buildOutput)) {
80+ $buildOutput = "RandomGen/Community.PowerToys.Run.Plugin.RandomGen/bin/Release/net9.0-windows10.0.22621.0/win-${{ matrix.platform }}/publish"
81+ }
7482
7583 Write-Host "Using build output directory: $buildOutput"
7684
You can’t perform that action at this time.
0 commit comments