You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/apps/publish/msstore-dev-cli/github-actions.md
+183-5Lines changed: 183 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ jobs:
92
92
### Step 2
93
93
94
94
#### For metadata updates
95
-
* Before publishing metadata updates for the first time, obtain the base metadata JSON from Partner Center for your app submission. This ensures you start with the correct structure for your app. Create a GitHub Actions workflow under .github/workflows/GetBaseMetadata.yml using the provided snippet:
95
+
* Before publishing metadata updates for the first time, obtain the base metadata JSON from Partner Center for your app submission. This ensures you start with the correct structure for your app. So, create a GitHub Actions workflow under .github/workflows/GetBaseMetadata.yml using the provided snippet:
96
96
97
97
```console
98
98
name: GetBaseMetadata
@@ -125,7 +125,11 @@ jobs:
125
125
126
126
* Run this workflow from the Actions tab in your GitHub repository. Select the relevant workflow and click Run workflow.
127
127
128
-
:::image type="content" source="../images/github-actions-repo-secret.png" lightbox="../images/github-actions-repo-secret.png" alt-text="A screenshot showing how to add secrets to your repository.":::
workflow run process for obtaining base metadata for MSIX app.":::
130
+
131
+
* Upon completion, the workflow will obtain the metadata for your app in the build logs.
132
+
* Copy this and create a metadata.json file in the metadata folder.
129
133
130
134
* Now, under .github/workflows/, create AppMetadataAutoUpdate.yml using the provided workflow snippet:
131
135
@@ -163,12 +167,12 @@ jobs:
163
167
164
168
* When metadata.json gets updated as part of the CI/CD flow in the metadata folder, it will automatically trigger the AppMetadataAutoUpdate.yml workflow.
165
169
166
-
The workflow will do the following in the background:
170
+
The above workflows will do the following in the background:
167
171
* Invoke the GitHub Action (microsoft-store-apppublisher)
168
172
* Authenticate your Microsoft Store Partner Center account using the secrets you configured (Tenant ID, Client ID, Client Secret, Seller ID).
169
-
* Use the Microsoft Store Developer CLI (msstore) to publish the updated metadata or package to the Microsoft Store.
173
+
* Use the Microsoft Store Developer CLI (msstore) to obtain base metadata and publish the updated package or metadata to the Microsoft Store.
170
174
171
-
For more information on commands, refer [Microsoft Store Developer CLI (MSIX)](https://learn.microsoft.com/en-us/windows/apps/publish/msstore-dev-cli/overview).
175
+
For more information on commands, refer [Microsoft Store Developer CLI (MSIX)](https://learn.microsoft.com/en-us/windows/apps/publish/msstore-dev-cli/overview).
172
176
173
177
### Step 3
174
178
@@ -178,5 +182,179 @@ After your GitHub Actions workflow completes successfully, check the Microsoft S
178
182
179
183
[Add the GitHub Action Workflow](https://docs.github.com/en/actions/tutorials/create-an-example-workflow) to invoke the Microsoft GitHub action (microsoft-store-apppublisher) for publishing package and app metadata updates to store.
180
184
185
+
### Step 1
186
+
187
+
#### For package updates
188
+
* Before publishing updates for the first time, obtain the base package JSON from Partner Center for your app submission. This ensures you start with the correct structure for your app. So, create a GitHub Actions workflow under .github/workflows/GetBasePackage.yml using the provided snippet:
msstore submission update <Partner center Id> $updatedPackage
259
+
- name: Publish Submission
260
+
run: |-
261
+
msstore submission publish <Partner center Id>
262
+
```
263
+
264
+
* When the package.json is updated as part of the CI/CD flow in the release folder, the AppPackageAutoUpdate.yml workflow is triggered automatically.
265
+
266
+
### Step 2
267
+
268
+
#### For metadata updates
269
+
* Next, for metadata, obtain the base metadata JSON from Partner Center for your app submission by creating a GitHub Actions workflow under .github/workflows/GetBaseMetadata.yml using the provided snippet:
msstore submission updateMetadata <Partner center Id> $metadata
340
+
- name: Publish updated metadata
341
+
run: |
342
+
msstore submission publish <Partner center Id>
343
+
```
344
+
345
+
* When metadata.json gets updated as part of the CI/CD flow in the metadata folder, it will automatically trigger the AppMetadataAutoUpdate.yml workflow.
181
346
347
+
The above workflows will do the following in the background:
348
+
* Invoke the GitHub Action (microsoft-store-apppublisher)
349
+
* Authenticate your Microsoft Store Partner Center account using the secrets you configured (Tenant ID, Client ID, Client Secret, Seller ID).
350
+
* Use the Microsoft Store Developer CLI (msstore) to obtain base package info and metadata and publish the updated package or metadata to the Microsoft Store.
351
+
352
+
For more information on commands, refer [Microsoft Store Developer CLI (MSI/EXE)](https://learn.microsoft.com/en-us/windows/apps/publish/msstore-dev-cli/overview-exe).
353
+
354
+
### Step 3
355
+
356
+
After your GitHub Actions workflow completes successfully, check the Microsoft Store to confirm that your changes are live. Updates will appear after the certification process in Partner Center is complete.
357
+
358
+
---
182
359
360
+
We trust that this document will help significantly enhance the efficiency and reliability of your Microsoft Store update process. By following these best practices, you can streamline app publishing and ensure a consistent, high-quality release experience.
0 commit comments