Deploy SSL certificate to Azure Web App (including Function App).
Supports multiple deployment slots (will be handled automatically) and multiple custom domains (make sure your certificate includes ALL custom domains in SAN).
If you need to issue SSL certificates automatically, you can use my acme.sh action.
If you want to upload SSL certificates to Azure Key Vault, just write a one-liner
azure/CLI
command.
jobs:
deploy-to-webapp:
name: Deploy certificate to Azure Web App
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
with:
# If you just commited and pushed your newly issued certificate to this repo in a previous job,
# use `ref` to make sure checking out the newest commit in this job
ref: ${{ github.ref }}
- uses: Menci/deploy-certificate-to-azure-web-app@beta-v2
with:
azcliversion: latest # Omit to use 'latest'.
creds: ${{ secrets.AZURE_CREDENTIALS }} # The same as `cred` in `azure/login`
subscription: 123e4567-e89b-42d3-a456-556642440000 # Omit if you have set the default subscription.
resource-group: MyResourceGroup # Omit if you have set the default resource group.
webapp-name: my-awesome-webapp
certificate-file: my/ssl/certificate.pfx
certificate-password: ${{ secrets.PFX_PASSWORD }}
delete-old-certificates: true # `false` to not deleting old certificates. Don't omit.