Use build artefacts
This commit is contained in:
parent
c4cdaf0e79
commit
ed615c1053
2 changed files with 19 additions and 7 deletions
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
|
@ -16,7 +16,8 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
Solution_Name: AmagnoVirtualPrinter.sln
|
solution: AmagnoVirtualPrinter.sln
|
||||||
|
configuration: Release
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -28,11 +29,13 @@ jobs:
|
||||||
uses: microsoft/setup-msbuild@v1
|
uses: microsoft/setup-msbuild@v1
|
||||||
|
|
||||||
- name: Restore the application
|
- name: Restore the application
|
||||||
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
|
run: msbuild $env:solution /t:Restore /p:Configuration=$env:configuration
|
||||||
env:
|
|
||||||
Configuration: ${{ matrix.configuration }}
|
|
||||||
|
|
||||||
- name: Build solution
|
- name: Build solution
|
||||||
run: msbuild $env:Solution_Name /t:Rebuild /p:Configuration=$env:Configuration
|
run: msbuild $env:solution /t:Rebuild /p:Configuration=$env:configuration
|
||||||
env:
|
|
||||||
Configuration: ${{ matrix.configuration }}
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: artifacts
|
||||||
|
path: files/**/*
|
||||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -13,6 +13,15 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: call-build
|
needs: call-build
|
||||||
steps:
|
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
|
- name: Create msi from PowerShell Script
|
||||||
run: |
|
run: |
|
||||||
"$Env:GITHUB_WORKSPACE\create_msi.ps1"
|
"$Env:GITHUB_WORKSPACE\create_msi.ps1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue