-
Notifications
You must be signed in to change notification settings - Fork 0
/
teamsapp.yml
39 lines (35 loc) · 2.34 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
# 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 parallelly.
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 varialbe 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 varialbe here, but TeamsFx will not ask you to select or create resource grouop 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
with:
args: install
- uses: cli/runNpmCommand # Run npm command
with:
args: run build --if-present
- uses: azureStorage/deploy # Deploy bits to Azure Storage Static Website
with:
workingDirectory: .
distributionPath: ./dist # Deploy base folder
resourceId: ${{ADDIN_AZURE_STORAGE_RESOURCE_ID}} # The resource id of the cloud resource to be deployed to