From ed615c10537a010b01f0d23497a2f454e4be06ae Mon Sep 17 00:00:00 2001 From: Gerrit Date: Tue, 30 May 2023 13:20:50 +0200 Subject: [PATCH] Use build artefacts --- .github/workflows/build.yml | 17 ++++++++++------- .github/workflows/release.yml | 9 +++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 486a4e0..1535f3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,8 @@ jobs: runs-on: windows-latest env: - Solution_Name: AmagnoVirtualPrinter.sln + solution: AmagnoVirtualPrinter.sln + configuration: Release steps: - name: Checkout uses: actions/checkout@v2 @@ -28,11 +29,13 @@ jobs: uses: microsoft/setup-msbuild@v1 - name: Restore the application - run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration - env: - Configuration: ${{ matrix.configuration }} + run: msbuild $env:solution /t:Restore /p:Configuration=$env:configuration - name: Build solution - run: msbuild $env:Solution_Name /t:Rebuild /p:Configuration=$env:Configuration - env: - Configuration: ${{ matrix.configuration }} + run: msbuild $env:solution /t:Rebuild /p:Configuration=$env:configuration + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: artifacts + path: files/**/* \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90270e3..e6c67a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,15 @@ jobs: runs-on: windows-latest needs: call-build steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + name: artefacts + - name: Create msi from PowerShell Script run: | "$Env:GITHUB_WORKSPACE\create_msi.ps1"