Skip to content

Commit 0589f3b

Browse files
committed
Fix: Add dotnet clean after version update to prevent cached manifest
1 parent daf9e96 commit 0589f3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ jobs:
4040
if: startsWith(github.ref, 'refs/tags/v')
4141
run: |
4242
$version = "${{ github.ref_name }}".TrimStart('v')
43+
Write-Host "=== Updating version to $version ==="
4344
& .github/scripts/update-manifest-version.ps1 -Version $version -ManifestPath "PingTool.WinUI3\Package.appxmanifest"
45+
Write-Host "=== Cleaning previous builds ==="
46+
dotnet clean ${{ env.SOLUTION_PATH }} -c Release
4447
4548
- name: Build MSIX Bundle
4649
run: |
@@ -85,7 +88,10 @@ jobs:
8588
if: startsWith(github.ref, 'refs/tags/v')
8689
run: |
8790
$version = "${{ github.ref_name }}".TrimStart('v')
91+
Write-Host "=== Updating version to $version ==="
8892
& .github/scripts/update-manifest-version.ps1 -Version $version -ManifestPath "PingTool.WinUI3\Package.appxmanifest"
93+
Write-Host "=== Cleaning previous builds ==="
94+
dotnet clean ${{ env.SOLUTION_PATH }} -c Release
8995
9096
- name: Build x64 Release
9197
run: |

0 commit comments

Comments
 (0)