Skip to content

Instantly share code, notes, and snippets.

@jidddddd
Created March 1, 2023 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jidddddd/36883c004a08459fc6b4148a50eb5a37 to your computer and use it in GitHub Desktop.
Save jidddddd/36883c004a08459fc6b4148a50eb5a37 to your computer and use it in GitHub Desktop.
Example of teamsapp.yml
version: 1.0.0
provision:
- uses: botAadApp/create
with:
name: bot
- uses: arm/deploy
with:
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}}
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}}
templates:
- path: ./infra/azure.bicep
parameters: ./infra/azure.parameters.json
deploymentName: Create-resources-for-bot
bicepCliVersion: v0.9.1
deploy:
- uses: cli/runNpmCommand
with:
args: install --production
- uses: azureAppService/deploy
with:
distributionPath: .
ignoreFile: ./.webappignore
resourceId: ${{BOT_AZURE_APP_SERVICE_RESOURCE_ID}}
publish:
- uses: teamsApp/validate
with:
manifestPath: ./appPackage/manifest.json
- uses: teamsApp/zipAppPackage
with:
manifestPath: ./appPackage/manifest.json
outputZipPath: ./build/appPackage/appPackage.${{TEAMSFX_ENV}}.zip
outputJsonPath: ./build/appPackage/manifest.${{TEAMSFX_ENV}}.json
- uses: teamsApp/update
with:
appPackagePath: ./build/appPackage/appPackage.${{TEAMSFX_ENV}}.zip
- uses: teamsApp/publishAppPackage
with:
appPackagePath: ./build/appPackage/appPackage.${{TEAMSFX_ENV}}.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment