Skip to content

Bump postcss from 8.4.21 to 8.4.38 in /app/frontend #3

Bump postcss from 8.4.21 to 8.4.38 in /app/frontend

Bump postcss from 8.4.21 to 8.4.38 in /app/frontend #3

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 }}