Update main_func-plc-dev-001.yml #3
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: 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 }} |