|
|
|
|
|
|
|
|
|
|
|
version: v1.7 |
|
|
|
|
|
provision: |
|
|
|
|
|
- uses: teamsApp/create |
|
|
with: |
|
|
|
|
|
name: codette${{APP_NAME_SUFFIX}} |
|
|
|
|
|
|
|
|
writeToEnvironmentFile: |
|
|
teamsAppId: TEAMS_APP_ID |
|
|
|
|
|
|
|
|
- uses: aadApp/create |
|
|
with: |
|
|
|
|
|
name: codette${{APP_NAME_SUFFIX}} |
|
|
generateClientSecret: true |
|
|
signInAudience: AzureADMultipleOrgs |
|
|
writeToEnvironmentFile: |
|
|
|
|
|
clientId: BOT_ID |
|
|
|
|
|
clientSecret: SECRET_BOT_PASSWORD |
|
|
|
|
|
objectId: BOT_OBJECT_ID |
|
|
|
|
|
|
|
|
- uses: file/createOrUpdateJsonFile |
|
|
with: |
|
|
target: ../codette/appsettings.Development.json |
|
|
content: |
|
|
BOT_TYPE: 'MultiTenant' |
|
|
BOT_ID: ${{BOT_ID}} |
|
|
BOT_PASSWORD: ${{SECRET_BOT_PASSWORD}} |
|
|
Azure: |
|
|
OpenAIApiKey: ${{SECRET_AZURE_OPENAI_API_KEY}} |
|
|
OpenAIEndpoint: ${{AZURE_OPENAI_ENDPOINT}} |
|
|
OpenAIDeploymentName: ${{AZURE_OPENAI_DEPLOYMENT_NAME}} |
|
|
|
|
|
|
|
|
- uses: botFramework/create |
|
|
with: |
|
|
botId: ${{BOT_ID}} |
|
|
name: codette |
|
|
messagingEndpoint: ${{BOT_ENDPOINT}}/api/messages |
|
|
description: "" |
|
|
channels: |
|
|
- name: msteams |
|
|
|
|
|
- uses: teamsApp/validateManifest |
|
|
with: |
|
|
|
|
|
manifestPath: ./appPackage/manifest.json |
|
|
|
|
|
- uses: teamsApp/zipAppPackage |
|
|
with: |
|
|
|
|
|
manifestPath: ./appPackage/manifest.json |
|
|
outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip |
|
|
outputFolder: ./appPackage/build |
|
|
|
|
|
- uses: teamsApp/validateAppPackage |
|
|
with: |
|
|
|
|
|
appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: teamsApp/update |
|
|
with: |
|
|
|
|
|
appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip |
|
|
|
|
|
|