/sentry-release

GitHub Action for publishing a new release to Sentry.io

Primary LanguageDockerfileMIT LicenseMIT

GitHub Action to publish new Sentry.io releases

Action wraps the Sentry CLI to publish new releases on Sentry.io.

Usage

An example workflow to release a new Sentry version:

workflow "Release a new version" {
  on = "push"
  resolves = "release version"
}

action "release version" {
  uses = "juankaram/sentry-release@master"
  secrets = ["SENTRY_AUTH_TOKEN"]
  env = {
    SENTRY_ORG     = "foo"
    SENTRY_PROJECT = "bar"
    ENVIRONMENT    = "development"
  }
}

Secrets

  • SENTRY_AUTH_TOKEN - Required. The authentication token to use for all communication with Sentry. (more info)
  • SENTRY_ORG - Required. The slug of the organization to use for a command.
  • SENTRY_PROJECT - Required. The slug of the project to use for a command.

Environment variables

  • RELEASE_VERSION - Optional. Custom version tag. Defaults to ${SENTRY_PROJECT}@$(git describe --always --long).

Attribution

Heavily inspired by GitHub Actions.

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.