From 51754035a3f0c4cd1cc7f64a7209f07fd38f920f Mon Sep 17 00:00:00 2001 From: 0x5BFA <62196528+0x5bfa@users.noreply.github.com> Date: Fri, 2 Aug 2024 22:13:55 +0900 Subject: [PATCH] Update cd-store.yml --- .github/workflows/cd-store.yml | 40 ++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cd-store.yml b/.github/workflows/cd-store.yml index 6772952a5..32f0988c5 100644 --- a/.github/workflows/cd-store.yml +++ b/.github/workflows/cd-store.yml @@ -21,16 +21,18 @@ jobs: configuration: [Release] # Consider to use Store platform: [x64] env: - APPX_BUNDLE_PLATFORMS: 'x64|arm64' - CONFIGURATION: '${{ matrix.configuration }}' - PLATFORM: '${{ matrix.platform }}' - WORKING_DIR: '${{ github.workspace }}' # Default: 'D:\a\FluentHub\FluentHub' - SOLUTION_PATH: '${{ github.workspace }}\FluentHub.sln' - PACKAGE_PROJECT_DIR: '${{ github.workspace }}\src\FluentHub.Package' - PACKAGE_PROJECT_PATH: '${{ github.workspace }}\src\FluentHub.Package\FluentHub.Package.wapproj' - APP_CREDENTIALS_PATH: '${{ github.workspace }}\src\FluentHub.App\AppCredentials.config' - ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts' - APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages' + APPX_BUNDLE_PLATFORMS: 'x64|arm64' + CONFIGURATION: '${{ matrix.configuration }}' + PLATFORM: '${{ matrix.platform }}' + WORKING_DIR: '${{ github.workspace }}' # Default: 'D:\a\FluentHub\FluentHub' + SOLUTION_PATH: '${{ github.workspace }}\FluentHub.sln' + PACKAGE_PROJECT_DIR: '${{ github.workspace }}\src\FluentHub.Package' + PACKAGE_PROJECT_PATH: '${{ github.workspace }}\src\FluentHub.Package\FluentHub.Package.wapproj' + APP_CREDENTIALS_PATH: '${{ github.workspace }}\src\FluentHub.App\AppCredentials.config' + ARTIFACTS_STAGING_DIR: '${{ github.workspace }}\artifacts' + APPX_PACKAGE_DIR: '${{ github.workspace }}\artifacts\AppxPackages' + STORE_BROKER_STAGING_DIR: '${{ github.workspace }}\.configurations\MicrosoftStore\submission' + STORE_BROKER_CONFI_FILE_PATH: '${{ github.workspace }}\.configurations\MicrosoftStore\sbconfig.json' steps: @@ -83,4 +85,20 @@ jobs: uses: actions/upload-artifact@v4 with: name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.PLATFORM }})' - path: ${{ env.ARTIFACTS_STAGING_DIR }} \ No newline at end of file + path: ${{ env.ARTIFACTS_STAGING_DIR }} + + - name: Publish to Microsoft Store + shell: pwsh + run: | + . './scripts/SubmitTo-MicrosoftStore.ps1' ` + -SubmissionDirPath=$env:STORE_BROKER_STAGING_DIR ` + -BrokerConfigPath=$env:STORE_BROKER_CONFI_FILE_PATH ` + -AppxPackagePath=$env:ARTIFACTS_STAGING_DIR ` + -PartnerCenterClientId=$env:PARTNER_CENTER_CLIENT_ID ` + -PartnerCenterClientSecret=$env:PARTNER_CENTER_CLIENT_SECRET ` + -PartnerCenterStoreId=9NKB9HX8RJZ3 ` + -PartnerCenterTenantId=$env:PARTNER_CENTER_TENANT_ID + env: + PARTNER_CENTER_CLIENT_ID: ${{ secrets.PARTNER_CENTER_CLIENT_ID }} + PARTNER_CENTER_CLIENT_SECRET: ${{ secrets.PARTNER_CENTER_CLIENT_SECRET }} + PARTNER_CENTER_TENANT_ID: ${{ secrets.PARTNER_CENTER_TENANT_ID }}