File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 3131 $content = Get-Content dev-proxy.csproj
3232 $content -replace '<AssemblyName>devproxy</AssemblyName>', '<AssemblyName>devproxy-beta</AssemblyName>' | Set-Content dev-proxy.csproj
3333 popd
34+ - name : Set newVersionNotification for beta
35+ if : contains('${{ github.ref_name }}', '-beta')
36+ run : |
37+ pushd
38+ cd ./dev-proxy
39+ $content = Get-Content devproxyrc.json
40+ $content -replace '"newVersionNotification": "stable"', '"newVersionNotification": "beta"' | Set-Content devproxyrc.json
41+ popd
3442 - name : Publish ${{ matrix.architecture }}
3543 run : dotnet publish ./dev-proxy/dev-proxy.csproj -c Release -p:PublishSingleFile=true -p:InformationalVersion=$("${{ github.ref_name }}".Substring(1)) -r ${{ matrix.architecture }} --self-contained -o ./${{ env.release }}
3644 - name : Build plugins
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ if (-not (Test-Path ../bld)) {
1313if ($isBeta ) {
1414 # Rename executable for beta
1515 Rename-Item - Path ../ bld/ devproxy.exe - NewName devproxy-beta.exe
16+ # Set newVersionNotification for beta
17+ $content = Get-Content ../ bld/ devproxyrc.json
18+ $content -replace ' "newVersionNotification": "stable"' , ' "newVersionNotification": "beta"' | Set-Content ../ bld/ devproxyrc.json
1619}
1720
1821# Add installer icon
You can’t perform that action at this time.
0 commit comments