@@ -46,20 +46,17 @@ jobs:
4646 gh release create "v${{ steps.version.outputs.VERSION }}" --title "v${{ steps.version.outputs.VERSION }}" --generate-notes --target main
4747
4848 - name : Setup .NET 8.0
49- if : steps.check.outputs.EXISTS == 'false'
5049 uses : actions/setup-dotnet@v4
5150 with :
5251 dotnet-version : 8.0.x
5352
5453 - name : Build and test
55- if : steps.check.outputs.EXISTS == 'false'
5654 run : |
5755 dotnet restore
5856 dotnet build -c Release
5957 dotnet test tests/PlanViewer.Core.Tests/PlanViewer.Core.Tests.csproj -c Release --no-build --verbosity normal
6058
6159 - name : Publish App (all platforms)
62- if : steps.check.outputs.EXISTS == 'false'
6360 run : |
6461 dotnet publish src/PlanViewer.App/PlanViewer.App.csproj -c Release -r win-x64 --self-contained -o publish/win-x64
6562 dotnet publish src/PlanViewer.App/PlanViewer.App.csproj -c Release -r linux-x64 --self-contained -o publish/linux-x64
6865
6966 # ── SignPath code signing (Windows only, skipped if secret not configured) ──
7067 - name : Check if signing is configured
71- if : steps.check.outputs.EXISTS == 'false'
7268 id : signing
7369 shell : bash
7470 run : |
@@ -80,15 +76,15 @@ jobs:
8076 fi
8177
8278 - name : Upload Windows build for signing
83- if : steps.check.outputs.EXISTS == 'false' && steps. signing.outputs.ENABLED == 'true'
79+ if : steps.signing.outputs.ENABLED == 'true'
8480 id : upload-unsigned
8581 uses : actions/upload-artifact@v4
8682 with :
8783 name : App-unsigned
8884 path : publish/win-x64/
8985
9086 - name : Sign Windows build
91- if : steps.check.outputs.EXISTS == 'false' && steps. signing.outputs.ENABLED == 'true'
87+ if : steps.signing.outputs.ENABLED == 'true'
9288 uses : signpath/github-action-submit-signing-request@v1
9389 with :
9490 api-token : ' ${{ secrets.SIGNPATH_API_TOKEN }}'
@@ -101,15 +97,14 @@ jobs:
10197 output-artifact-directory : ' signed/win-x64'
10298
10399 - name : Replace unsigned Windows build with signed
104- if : steps.check.outputs.EXISTS == 'false' && steps. signing.outputs.ENABLED == 'true'
100+ if : steps.signing.outputs.ENABLED == 'true'
105101 shell : pwsh
106102 run : |
107103 Remove-Item -Recurse -Force publish/win-x64
108104 Copy-Item -Recurse signed/win-x64 publish/win-x64
109105
110106 # ── Velopack (uses signed Windows binaries) ───────────────────────
111107 - name : Create Velopack release (Windows)
112- if : steps.check.outputs.EXISTS == 'false'
113108 shell : pwsh
114109 env :
115110 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -126,7 +121,6 @@ jobs:
126121
127122 # ── Package and upload ────────────────────────────────────────────
128123 - name : Package and upload
129- if : steps.check.outputs.EXISTS == 'false'
130124 shell : pwsh
131125 env :
132126 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments