Skip to content

Commit

Permalink
removed "Publish Profile" settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedbham committed Jul 5, 2023
1 parent d8612d9 commit f008bcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/module1-azure-function-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches:
- main
paths:
- 'tools/deploy/module2/**'
- 'azure-function-workflow.yaml'
- 'tools/deploy/module1/**'
- '.github/workflows/module1-azure-function-workflow.yaml'

env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'tools/deploy/module1/TransactionClassifier/' # set this to the path to your function app project, defaults to the repository root
Expand Down Expand Up @@ -59,6 +59,5 @@ jobs:
# set app_name equal to output from "retrieve the Function App name" step
app-name: ${{ steps.get_functionapp_name.outputs.appname }}
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}

# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples
11 changes: 3 additions & 8 deletions docs/modules/Module1/Lab-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,9 @@ chmod +x ./tools/deploy/module0/aad-federated-cred.sh
### Deploying the Azure Function App code

* Deploy the Azure Function App code using Github Actions workflow file [module2-code-workflow.yaml](../../../.github/workflows/module1-code-workflow.yaml) as follows:
1. In Azure portal, navigate to the Function App that was deployed in the last step.
2. Click **Get publish profile** and download **.PublishSettings** file.
3. Open the **.PublishSettings** file and copy the XML content.
4. Paste the XML content to your GitHub Repository > Settings > Secrets > Add a new secret > **AZURE_FUNCTIONAPP_PUBLISH_PROFILE**
5. Trigger this workflow manually:
* click on the `Actions` tab.
* Select `Deploy Azure Function App` workflow.
* Click on the `Run workflow` button
1. Click on the `Actions` tab.
2. Select `Deploy Azure Function App` workflow.
3. Click on the `Run workflow` button

* Configure following **Application Settings** for the Azure Function by going to your `function app > Configuration > Application Settings`:
1. OPENAI_API_BASE - Azure OpenAI API Endpoint URL (e.g. https://openai-demo-ahmedbham.openai.azure.com/)
Expand Down

0 comments on commit f008bcb

Please sign in to comment.