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

5
5
6
-
This GitHub Action (created using typescript) uses [Office 365 CLI](https://pnp.github.io/office365-cli/), specifically the [spo app add](https://pnp.github.io/office365-cli/cmd/spo/app/app-add/), [spo app deploy](https://pnp.github.io/office365-cli/cmd/spo/app/app-deploy/) commands, to add and deploy.
6
+
This GitHub Action (created using typescript) uses [CLI for Microsoft 365](https://pnp.github.io/cli-microsoft365/), specifically the [spo app add](https://pnp.github.io/cli-microsoft365/cmd/spo/app/app-add/), [spo app deploy](https://pnp.github.io/cli-microsoft365/cmd/spo/app/app-deploy/) commands, to add and deploy.
7
7
8
8
## Usage
9
9
### Pre-requisites
10
-
Create a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#example-workflow---office-365-cli-deploy) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
10
+
Create a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#example-workflow---cli-for-microsoft-365-deploy) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
11
11
12
12
## Dependencies on other GitHub Actions
13
13
14
-
-[Office 365 CLI Login](https://github.com/pnp/action-cli-login) – **Required** . This action is dependant on `action-cli-login`. So in the workflow we need to run `action-cli-login` before using this action.
14
+
-[CLI for Microsoft 365 Login](https://github.com/pnp/action-cli-login) – **Required** . This action is dependant on `action-cli-login`. So in the workflow we need to run `action-cli-login` before using this action.
15
15
16
16
#### Optional requirement
17
17
Since `action-cli-login` requires user name and password which are sensitive pieces of information, it would be ideal to store them securely. We can achieve this in a GitHub repo by using [secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets). So, click on `settings` tab in your repo and add 2 new secrets:
@@ -29,11 +29,11 @@ These secrets are encrypted and can only be used by GitHub actions.
29
29
### Output
30
30
-`APP_ID` : The id of the app that gets deployed
31
31
32
-
### Example workflow - Office 365 CLI Deploy
32
+
### Example workflow - CLI for Microsoft 365 Deploy
33
33
On every `push` build the code, then login to Office 365 and then start deploying.
34
34
35
35
```yaml
36
-
name: SPFx CICD with O365 CLI
36
+
name: SPFx CICD with CLI for Microsoft 365
37
37
38
38
on: [push]
39
39
@@ -56,38 +56,38 @@ jobs:
56
56
## Code to get the package omitted
57
57
##
58
58
59
-
#Office 365 cli login action
59
+
#CLI for Microsoft 365 login action
60
60
- name: Login to tenant
61
-
uses: pnp/action-cli-login@v1.0.0
61
+
uses: pnp/action-cli-login@v2.0.0
62
62
with:
63
63
ADMIN_USERNAME: ${{ secrets.adminUsername }}
64
64
ADMIN_PASSWORD: ${{ secrets.adminPassword }}
65
65
66
-
#Office 365 cli deploy app action
66
+
#CLI for Microsoft 365 deploy app action
67
67
# Use either option 1 or option 2
68
68
69
69
# Option 1 - Deploy app at tenant level
70
70
- name: Option 1 - Deploy app to tenant
71
71
id: o365clideploy # optional - use if output needs to be used
0 commit comments