I have an Azure Function App v3 running a Node.js app that has a production and a stage slot. It gets deployed to from GitHub using an Action created in Deployment Center. I have one deploy action for prod and one for stage, and have verified that the prod deploy is not running.
When the stage deploy Action runs it is successful, but the code ends up in both the stage and production environments.
"Auto-swap enabled" is Off. I have not manually triggered a swap, either.
For stg
the YAML looks like this:
- name: 'Run Azure Functions Action'
uses: Azure/[email protected]
id: fa
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE_STAGE }}
slot-name: 'stg'
For production
the YAML looks like this:
- name: 'Run Azure Functions Action'
uses: Azure/[email protected]
id: fa
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}
slot-name: 'production'
These both appear to match what is auto-generated by Deployment Center for each of the slots.