feat(ci): release/debug builds, etc.

This commit is contained in:
rjindael 2023-07-31 05:21:48 -07:00
parent 7ff48ba26b
commit 3601fd59c1
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
2 changed files with 13 additions and 7 deletions

View File

@ -3,6 +3,10 @@ on: [push, pull_request]
jobs:
windows:
strategy:
matrix:
configuration: [Debug, Release]
name: Windows
runs-on: windows-latest
@ -20,11 +24,10 @@ jobs:
run: dotnet build --no-restore
- name: Publish
run: |
dotnet publish -r win-x64 -c Release --no-self-contained -p:PublishDir=../publish/win-x64
mv publish/win-x64/Kiseki.Launcher.Windows.exe publish/Kiseki.Launcher.exe
run: dotnet publish --no-self-contained -c {{ matrix.configuration }} -r win-x64
- name: Upload
uses: actions/upload-artifact@v3
with:
path: publish/Kiseki.Launcher.exe
name: Kiseki.Launcher.Windows (${{ matrix.configuration }})
path: .\Kiseki.Launcher.Windows\bin\{{ matrix.configuration }}\net7.0-windows\win-x64\publish\*

View File

@ -8,11 +8,14 @@ jobs:
if: startsWith(github.ref, 'refs/tag/v')
steps:
- name: Download release artifacts
- name: Download release artifact
uses: actions/download-artifact@v3
with:
name: Kiseki.Launcher.Windows (Release)
path: win-x64
- name: Rename artifacts
run: mv Kiseki.Launcher.exe Kiseki.Launcher-v${{ github.ref_name }}_win-x64.exe
- name: Rename binary
run: mv win-x64/Kiseki.Launcher.Windows.exe Kiseki.Launcher-v${{ github.ref_name }}_win-x64.exe
- name: Create release draft
uses: softprops/action-gh-release@v1