Skip to content

Commit 27a04c0

Browse files
authored
Merge pull request #3459 from MicrosoftDocs/alzollin/msstorecli-setup
Added setup-msstore-cli GitHub Action.
2 parents a7058e0 + e6a0d79 commit 27a04c0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

hub/apps/publish/msstore-dev-cli/ci-cd-environments.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Microsoft Store Developer CLI (preview) supports running in CI/CD environmen
1212

1313
The firststep to achieve this it to install the Microsoft Store Developer CLI (preview) on your CI/CD environment. You can find instructions on how to do this [here](install.md).
1414

15-
After installing the Microsoft Store Developer CLI (preview), you have to configure your environment to be able to run commands. You can do this by running the `msstore` command with the specific parameters that identify your partner center account (_TenantId_, _SellerId_, _ClientId_, _ClientSecret_).
15+
After installing the Microsoft Store Developer CLI (preview), you have to configure your environment to be able to run commands. You can do this by running the `msstore reconfigure` command with the specific parameters that identify your partner center account (_TenantId_, _SellerId_, _ClientId_, _ClientSecret_).
1616

1717
It is very important to hide these credentials, as they will be visible in the logs of your CI/CD pipeline. You can do this by using **secrets**. Each CI/CD pipeline system have different names for these secrets. For example, Azure DevOps call them [_Secret Variables_](/azure/devops/pipelines/process/set-secret-variables), but GitHub Action calls them [Encrypted Secrets](https://docs.github.com/actions/security-guides/encrypted-secrets). Create one **secret** for each of the parameters (_TenantId_, _SellerId_, _ClientId_, _ClientSecret_), and then use the `reconfigure` command to setup your environment.
1818

@@ -21,14 +21,18 @@ For example:
2121
## Azure DevOps
2222

2323
```yaml
24-
- script: msstore reconfigure --tenantId $(PARTNER_CENTER_TENANT_ID) --sellerId $(PARTNER_CENTER_SELLER_ID) --clientId $(PARTNER_CENTER_CLIENT_ID) --clientSecret $(PARTNER_CENTER_CLIENT_SECRET)
24+
- task: UseMSStoreCLI@0
2525
displayName: Setup Microsoft Store Developer CLI
26+
- script: msstore reconfigure --tenantId $(PARTNER_CENTER_TENANT_ID) --sellerId $(PARTNER_CENTER_SELLER_ID) --clientId $(PARTNER_CENTER_CLIENT_ID) --clientSecret $(PARTNER_CENTER_CLIENT_SECRET)
27+
displayName: Configure Microsoft Store Developer CLI
2628
```
2729
2830
## GitHub Actions
2931
3032
```yaml
3133
- name: Setup Microsoft Store Developer CLI
34+
uses: microsoft/setup-msstore-cli@v1
35+
- name: Configure Microsoft Store Developer CLI
3236
run: msstore reconfigure --tenantId ${{ secrets.PARTNER_CENTER_TENANT_ID }} --sellerId ${{ secrets.PARTNER_CENTER_SELLER_ID }} --clientId ${{ secrets.PARTNER_CENTER_CLIENT_ID }} --clientSecret ${{ secrets.PARTNER_CENTER_CLIENT_SECRET }}
3337
```
3438

hub/apps/publish/msstore-dev-cli/install.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ You can download the macOS *.tar.gz* for your specific architecture (x64 or Arm6
4242

4343
```console
4444
mkdir MSStoreCLI
45+
curl https://github.com/microsoft/msstore-cli/releases/latest/download/MSStoreCLI-osx.12-x64.tar.gz -o MSStoreCLI-osx.12-x64.tar.gz
4546
tar -xvf MSStoreCLI-osx.12-x64.tar.gz -C ./MSStoreCLI
4647
sudo cp -R MSStoreCLI/. /usr/local/bin
4748
```
@@ -65,6 +66,7 @@ You can download the Linux *.tar.gz* for your specific architecture (x64 or Arm6
6566

6667
```console
6768
mkdir MSStoreCLI
69+
wget https://github.com/microsoft/msstore-cli/releases/latest/download/MSStoreCLI-linux-x64.tar.gz
6870
tar -xvf MSStoreCLI-linux-x64.tar.gz -C ./MSStoreCLI
6971
sudo cp -R MSStoreCLI/. /usr/local/bin
7072
```

0 commit comments

Comments
 (0)