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
| #!/bin/bash | |
| # This script basically does what Azure/functions-action@v1 github action does | |
| # when it detects a flex consumption function app. | |
| # Create a zip package of the app (dotnet publish --configuration Release --output staging, and zip folder contents) | |
| # You must be logged in with az login, and set $ARM_SUBSCRIPTION_ID variable | |
| # Agent must have az cli, curl, jq, xmllint installed (GH agents have all but xmllint) | |
| # param 1: resource group name |