Skip to content
elmahio

GitHub Action

elmah.io Create Deployment Action

v1 Latest version

elmah.io Create Deployment Action

elmahio

elmah.io Create Deployment Action

GitHub Action to create a new deployment on elmah.io

Installation

Copy and paste the following snippet into your .yml file.

              

- name: elmah.io Create Deployment Action

uses: elmahio/github-create-deployment-action@v1

Learn more about this action in elmahio/github-create-deployment-action

Choose a version

elmah.io Create Deployment Action

GitHub Action to create a new deployment on elmah.io.

For the full documentation check out Create deployments from GitHub Actions.

Inputs

apiKey

Required An API key with permission to create deployments.

version

Required The version number of this deployment. The value of version can be a SemVer compliant string or any other syntax that you are using as your version numbering scheme.

description

Optional description of this deployment. Can be markdown or clear text.

userName

The name of the person responsible for creating this deployment. This can be the name taken from your deployment server.

userEmail

The email of the person responsible for creating this deployment. This can be the email taken from your deployment server.

logId

As default, deployments are attached all logs of the organization. If you want a deployment to attach to a single log only, set this to the ID of that log.

Example usage

Minimum example:

uses: elmahio/github-create-deployment-action@v1
with:
  apiKey: ${{ secrets.ELMAH_IO_API_KEY }}
  version: '1.0.0'

Example with more input and GitHub variables:

uses: elmahio/github-create-deployment-action@v1
with:
  apiKey: ${{ secrets.ELMAH_IO_API_KEY }}
  description: ${{ github.event.head_commit.message }}
  version: ${{ github.run_number }}
  userName: ${{ github.actor }}
  logId: ${{ secrets.ELMAH_IO_LOG_ID }}