Skip to content

Commit 2f133a9

Browse files
committed
Build release binary for testing build
1 parent 461c6a9 commit 2f133a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ jobs:
2525
- name: Build
2626
run: |
2727
$ver = '${{ github.ref_name }}' -replace 'testing_'
28-
invoke-expression 'dotnet build --no-restore --configuration Debug --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver'
28+
invoke-expression 'dotnet build --no-restore --configuration Release --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver'
2929
- name: write version into json
3030
run: |
3131
$ver = '${{ github.ref_name }}' -replace 'testing_'
32-
$path = './CustomizePlus/bin/Debug/CustomizePlus.json'
32+
$path = './CustomizePlus/bin/Release/CustomizePlus.json'
3333
$json = Get-Content -Raw $path | ConvertFrom-Json
3434
$json.AssemblyVersion = $ver
3535
$content = $json | ConvertTo-Json
3636
set-content -Path $path -Value $content
3737
- name: Archive
38-
run: Compress-Archive -Path CustomizePlus/bin/Debug/* -DestinationPath CustomizePlus.zip
38+
run: Compress-Archive -Path CustomizePlus/bin/Release/* -DestinationPath CustomizePlus.zip
3939
- name: Upload a Build Artifact
4040
uses: actions/[email protected]
4141
with:
4242
path: |
43-
./CustomizePlus/bin/Debug/*
43+
./CustomizePlus/bin/Release/*
4444
- name: Create Release
4545
id: create_release
4646
uses: actions/create-release@v1

0 commit comments

Comments
 (0)