Create deployments from GitHub Actions

GitHub Actions is a great platform for building and releasing software. To notify when you deploy a new version of your project, you will need an additional step in your build definition. Before you do that, start by creating new secrets:

  1. Go to your project on GitHub.

  2. Click the Settings tab.

  3. Click the Secrets navigation item.

  4. Click Add a new secret.

  5. Name the secret ELMAH_IO_API_KEY.

  6. Insert your API key in Value (Where is my API key?). Make sure to use an API key that includes the Deployments | Write permission (How to configure API key permissions).

  7. Click Add secret

  8. Do the same for your log ID but name it ELMAH_IO_LOG_ID (Where is my log ID?).

  9. Insert the following step as the last one in your YAML build specification:

- name: Notify
      shell: powershell
      run: |
        $ProgressPreference = "SilentlyContinue"

        $url = "${{ secrets.ELMAH_IO_API_KEY }}"
        $body = @{
          version = "${{ github.run_number }}"
          userName = "${{ }}"
          logId = "${{ secrets.ELMAH_IO_LOG_ID }}"
        [Net.ServicePointManager]::SecurityProtocol = `
        Invoke-RestMethod -Method Post -Uri $url -Body $body

This article was brought to you by the team. is the best error management system for .NET web applications. We monitor your website, alert you when errors start happening and help you fix errors fast.

See how we can help you monitor your website for crashes Monitor your website