Skip to content

GitHub Action for publishing a new release to Sentry.io

License

Notifications You must be signed in to change notification settings

NSCoder/sentry-release

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.