Skip to content

Commit

Permalink
Fix output path for build
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hofmann <[email protected]>
  • Loading branch information
hoffe86 committed Dec 14, 2024
1 parent 4c8d011 commit 060dbb5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ on:
description: 'Defines the platforms for the app package.'
required: false
default: ' x86|x64|ARM'
output_directory:
type: string
description: 'Defines the output directory for the app package'
required: false
default: '${{github.workspace}}\build'
build_number:
type: string
description: 'The build number to use'
Expand All @@ -27,7 +22,8 @@ jobs:
build:
name: 'Build App Package'
runs-on: windows-latest

env:
output_directory: ${{github.workspace}}/build
steps:
- name: Checkout main code
uses: actions/checkout@v2
Expand Down Expand Up @@ -96,7 +92,7 @@ jobs:
shell: pwsh
run: |
Write-Host "==== Build app package ====" -ForegroundColor Green
msbuild.exe ${{github.workspace}}\repo\OpenHAB.Windows.sln /p:Platform="x86" /p:AppxBundlePlatforms="${{inputs.bundle_Platforms}}" /p:AppxPackageDir="${{inputs.output_directory}}" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload /p:configuration="${{inputs.build_configuration}}" /t:rebuild
msbuild.exe ${{github.workspace}}\repo\OpenHAB.Windows.sln /p:Platform="x86" /p:AppxBundlePlatforms="${{inputs.bundle_Platforms}}" /p:AppxPackageDir="${{env.output_directory}}" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload /p:configuration="${{inputs.build_configuration}}" /t:rebuild
- name: End SonarQube analyze
env:
Expand All @@ -110,4 +106,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: app
path: ${{inputs.output_directory}}
path: ${{env.output_directory}}

0 comments on commit 060dbb5

Please sign in to comment.