Skip to content

Commit af74478

Browse files
committed
Update CI/CD
1 parent 0fdfed4 commit af74478

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/cd-store.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ jobs:
1818
configuration: [Release] # Consider to use Store
1919
platform: [x64]
2020
env:
21-
APPX_BUNDLE_PLATFORMS: 'x64|arm64'
22-
CONFIGURATION: '${{ matrix.configuration }}'
23-
PLATFORM: '${{ matrix.platform }}'
24-
WORKING_DIR: '${{ github.workspace }}' # Default: 'D:\a\FluentHub\FluentHub'
25-
SOLUTION_PATH: '${{ github.workspace }}\FluentHub.slnx'
26-
APP_PROJECT_DIR: '${{ github.workspace }}\src\FluentHub.App'
27-
APP_PROJECT_PATH: '${{ github.workspace }}\src\FluentHub.App\FluentHub.App.csproj'
28-
APP_CREDENTIALS_PATH: '${{ github.workspace }}\src\FluentHub.App\AppCredentials.config'
29-
ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts'
30-
APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages'
31-
STORE_BROKER_STAGING_DIR: '${{ github.workspace }}\.github\configurations\MicrosoftStore\submission'
32-
STORE_BROKER_CONFIG_PATH: '${{ github.workspace }}\.github\configurations\MicrosoftStore\config.json'
21+
APPX_BUNDLE_PLATFORMS: 'x64|arm64'
22+
CONFIGURATION: '${{ matrix.configuration }}'
23+
PLATFORM: '${{ matrix.platform }}'
24+
WORKING_DIR: '${{ github.workspace }}' # Default: 'D:\a\FluentHub\FluentHub'
25+
APP_PACKAGE_DIR: '${{ github.workspace }}\src\FluentHub.App\AppPackages\'
26+
APP_PROJECT_PATH: '${{ github.workspace }}\src\FluentHub.App\FluentHub.App.csproj'
27+
APP_MANIFEST_PATH: '${{ github.workspace }}\src\FluentHub.App\Package.appxmanifest'
28+
APP_CREDENTIALS_PATH: '${{ github.workspace }}\src\FluentHub.App\AppCredentials.config'
29+
STORE_BROKER_STAGING_DIR: '${{ github.workspace }}\.github\configurations\MicrosoftStore\submission'
30+
STORE_BROKER_CONFIG_PATH: '${{ github.workspace }}\.github\configurations\MicrosoftStore\config.json'
3331

3432
steps:
3533
- name: Checkout the repository
@@ -46,7 +44,9 @@ jobs:
4644
$bytes = [Convert]::FromBase64String($env:GH_CREDENTIALS_SECRET)
4745
[IO.File]::WriteAllBytes($env:APP_CREDENTIALS_PATH, $bytes)
4846
49-
./.github/scripts/Build-App.ps1 `
47+
cd $env:WORKING_DIR\src
48+
49+
& "$env:WORKING_DIR\.github\scripts\Build-App.ps1" `
5050
-Platform $env:PLATFORM `
5151
-Configuration $env:CONFIGURATION `
5252
-IsStorePublish $true `

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ env:
2525
APP_PROJECT_PATH: '${{ github.workspace }}\src\FluentHub.App\FluentHub.App.csproj'
2626
APP_MANIFEST_PATH: '${{ github.workspace }}\src\FluentHub.App\Package.appxmanifest'
2727
APP_CREDENTIALS_PATH: '${{ github.workspace }}\src\FluentHub.App\AppCredentials.config'
28-
AUTOMATED_TESTS_PLATFORM: 'x64'
29-
AUTOMATED_TESTS_CONFIGURATION: 'Release'
3028

3129
jobs:
3230
build:
@@ -56,7 +54,9 @@ jobs:
5654
$bytes = [Convert]::FromBase64String($env:GH_CREDENTIALS_SECRET)
5755
[IO.File]::WriteAllBytes($env:APP_CREDENTIALS_PATH, $bytes)
5856
59-
./.github/scripts/Build-App.ps1 `
57+
cd $env:WORKING_DIR\src
58+
59+
& "$env:WORKING_DIR\.github\scripts\Build-App.ps1" `
6060
-Platform $env:PLATFORM `
6161
-Configuration $env:CONFIGURATION `
6262
-PackageManifestPath $env:APP_MANIFEST_PATH
@@ -67,4 +67,4 @@ jobs:
6767
uses: actions/upload-artifact@v4
6868
with:
6969
name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.PLATFORM }})'
70-
path: ${{ env.APP_APPX_DIR }}
70+
path: ${{ env.APP_PACKAGE_DIR }}

0 commit comments

Comments
 (0)