Skip to content

Update main_func-plc-dev-001.yml #3

Update main_func-plc-dev-001.yml

Update main_func-plc-dev-001.yml #3

name: Deploy Python Azure Function
on:
push:
branches:
- main
env:
PYTHON_VERSION: '3.12'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: pip install -r requirements.txt
- name: Deploy to Azure Functions
uses: Azure/functions-action@v1
with:
app-name: 'func-plc-dev-001'
package: '.'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B1F462AC55CE4BE08A8A1DC7A595646D }}