Skip to content

Commit

Permalink
Update build.yml with new project paths and artifact upload
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Magdy <amagdy@microsoft.com>
  • Loading branch information
amgdy committed Mar 19, 2024
1 parent e387dc0 commit 117d638
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
runs-on: windows-2022
env:
APP_PROJECT_PATH: src/Magdys.ScreenPrivacyWatermark.App/Magdys.ScreenPrivacyWatermark.App.csproj
APP_PROJECT_OUTPUT: ${{ vars.RUNNER_TEMP }}/app
MSI_PROJECT_PATH: src/Magdys.ScreenPrivacyWatermark.Msi/Magdys.ScreenPrivacyWatermark.Msi.wixproj
MSI_PROJECT_OUTPUT: ${{ vars.RUNNER_TEMP }}/msi
APP_PROJECT_OUTPUT: ${RUNNER_TEMP}/app
MSI_PROJECT_PATH: src/Magdys.ScreenPrivacyWatermark.Setup/Magdys.ScreenPrivacyWatermark.Setup.wixproj
MSI_PROJECT_OUTPUT: ${RUNNER_TEMP}/msi
MSI_FILE_NAME: SPW-${{github.event.inputs.Version}}-Setup

steps:
Expand Down Expand Up @@ -56,3 +56,9 @@ jobs:

- name: Build MSI
run: msbuild ${{env.MSI_PROJECT_PATH}} /p:Configuration=Release /p:OutputPath=${{env.MSI_PROJECT_PATH}} /p:OutputName=${{env.MSI_FILE_NAME}} /p:AppFolder=${{env.APP_PROJECT_OUTPUT}}

- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: ${{env.MSI_FILE_NAME}}
path: ${{env.MSI_PROJECT_OUTPUT}}/${{env.MSI_FILE_NAME}}.msi

0 comments on commit 117d638

Please sign in to comment.