feat(ci): release/debug builds, etc.
This commit is contained in:
parent
7ff48ba26b
commit
3601fd59c1
|
|
@ -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\*
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue