Skip to content

Commit

Permalink
Build release binary for testing build
Browse files Browse the repository at this point in the history
  • Loading branch information
RisaDev committed Jan 11, 2024
1 parent 461c6a9 commit 2f133a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ jobs:
- name: Build
run: |
$ver = '${{ github.ref_name }}' -replace 'testing_'
invoke-expression 'dotnet build --no-restore --configuration Debug --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver'
invoke-expression 'dotnet build --no-restore --configuration Release --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver'
- name: write version into json
run: |
$ver = '${{ github.ref_name }}' -replace 'testing_'
$path = './CustomizePlus/bin/Debug/CustomizePlus.json'
$path = './CustomizePlus/bin/Release/CustomizePlus.json'
$json = Get-Content -Raw $path | ConvertFrom-Json
$json.AssemblyVersion = $ver
$content = $json | ConvertTo-Json
set-content -Path $path -Value $content
- name: Archive
run: Compress-Archive -Path CustomizePlus/bin/Debug/* -DestinationPath CustomizePlus.zip
run: Compress-Archive -Path CustomizePlus/bin/Release/* -DestinationPath CustomizePlus.zip
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: |
./CustomizePlus/bin/Debug/*
./CustomizePlus/bin/Release/*
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 2f133a9

Please sign in to comment.