Bump Azure.Identity from 1.11.3 to 1.11.4 in /app/backend #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Azure Functions CI/CD | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'app/backend/**' | |
- '.github/workflows/azure-static-web-apps-backend.yml' | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
branches: | |
- main | |
env: | |
AZURE_FUNCTIONAPP_NAME: enterprise-gpt-backend # set this to your application's name | |
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'app/backend' # set this to the path to your web app project, defaults to the repository root | |
PYTHON_VERSION: '3.10' # set this to the Python version to use (supports 3.6, 3.7, 3.8) | |
jobs: | |
build_and_deploy_job: | |
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') | |
runs-on: ubuntu-latest | |
name: Build and Deploy Job | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Setup Python ${{ env.PYTHON_VERSION }} Environment | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: 'Resolve Project Dependencies Using Pip' | |
shell: bash | |
run: | | |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}' | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt --target=".python_packages/lib/site-packages" | |
popd | |
- name: 'Run Azure Functions action' | |
uses: Azure/functions-action@v1 | |
with: | |
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} | |
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} | |
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} |