From 3601fd59c10b544cd0d4e96d3ba20fe2927bb236 Mon Sep 17 00:00:00 2001 From: rjindael Date: Mon, 31 Jul 2023 05:21:48 -0700 Subject: [PATCH] feat(ci): release/debug builds, etc. --- .github/workflows/build.yml | 11 +++++++---- .github/workflows/ci.yml | 9 ++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c91e29..5cffa28 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file + name: Kiseki.Launcher.Windows (${{ matrix.configuration }}) + path: .\Kiseki.Launcher.Windows\bin\{{ matrix.configuration }}\net7.0-windows\win-x64\publish\* \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af6b17a..6bcaf0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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