-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build release binary for testing build
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|