Skip to content

Commit bf2fb40

Browse files
committed
version v1.0.0
1 parent 7f4541e commit bf2fb40

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build-and-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
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
@@ -70,7 +73,12 @@ jobs:
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

0 commit comments

Comments
 (0)