forked from OfficeDev/Office-Add-in-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteamsapp.yml
44 lines (40 loc) · 2.66 KB
/
teamsapp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# yaml-language-server: $schema=https://aka.ms/teams-toolkit/1.0.0/yaml.schema.json
# Visit https://aka.ms/teamsfx-v5.0-guide for details on this file
# Visit https://aka.ms/teamsfx-actions for details on actions
version: 1.0.0
environmentFolderPath: ./env
# Triggered when 'teamsfx provision' is executed
provision:
- uses: arm/deploy # Deploy given ARM templates parallel.
with:
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment variable here, but TeamsFx will not ask you to select subscription if it's empty in this case.
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment variable here, but TeamsFx will not ask you to select or create resource group if it's empty in this case.
templates:
- path: ./infra/azure.bicep # Relative path to this file
parameters: ./infra/azure.parameters.json # Relative path to this file. Placeholders will be replaced with corresponding environment variable before ARM deployment.
deploymentName: Create-resources-for-addin # Required when deploy ARM template
bicepCliVersion: v0.9.1 # Teams Toolkit will download this bicep CLI version from github for you, will use bicep CLI in PATH if you remove this config.
# Output: every bicep output will be persisted in current environment's .env file with certain naming conversion. Refer https://aka.ms/teamsfx-actions/arm-deploy for more details on the naming conversion rule.
- uses: azureStorage/enableStaticWebsite
with:
storageResourceId: ${{ADDIN_AZURE_STORAGE_RESOURCE_ID}}
indexPage: index.html
errorPage: error.html
# Output: N/A
# Triggered when 'teamsfx deploy' is executed
deploy:
- uses: cli/runNpmCommand # Run npm command
name: install dependencies
with:
args: install
- uses: cli/runNpmCommand # Run npm command
name: build app
with:
args: run build --if-present
# Deploy bits to Azure Storage Static Website
- uses: azureStorage/deploy # Deploy bits to Azure Storage Static Website
with:
# Deploy base folder
artifactFolder: dist
# The resource id of the cloud resource to be deployed to. This key will be generated by arm/deploy action automatically. You can replace it with your existing Azure Resource id or add it to your environment variable file.
resourceId: ${{ADDIN_AZURE_STORAGE_RESOURCE_ID}}