Adding deployment steps to the workflow
Adding the deployment command is as simple as replacing what-if
with the create
command. Your YAML file should look like this after all the changes:
on: [push] name: Deploy Bicep template jobs: build-and-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@main - name: Azure Login uses: azure/login@v1 with: creds: ${{ secrets.AZURE_CREDENTIALS }} - name: Validate and deploy the template uses: azure/CLI@v1 with: azcliversion: 2.27.1 inlineScript: | az group create...