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 31
31
$content = Get-Content dev-proxy.csproj
32
32
$content -replace '<AssemblyName>devproxy</AssemblyName>', '<AssemblyName>devproxy-beta</AssemblyName>' | Set-Content dev-proxy.csproj
33
33
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
34
42
- name : Publish ${{ matrix.architecture }}
35
43
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 }}
36
44
- name : Build plugins
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ if (-not (Test-Path ../bld)) {
13
13
if ($isBeta ) {
14
14
# Rename executable for beta
15
15
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
16
19
}
17
20
18
21
# Add installer icon
You can’t perform that action at this time.
0 commit comments