Skip to content

Github action to push a new relese when a tag is created

License

Notifications You must be signed in to change notification settings

xGouley/sentry-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

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:

name: Sentry release
on:
  release:
    types: [published, edited]
      
jobs:
  sentry:
    name: Sentry release for ${{ github.ref }}
    # This job runs on Linux
    runs-on: ubuntu-latest
    steps:
      - name: Create release on Sentry
        uses: "xGouley/sentry-release@master"
        env:
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
          SENTRY_ORG: "foo"
          SENTRY_PROJECT: "bar"
          ENVIRONMENT: "development"
          TAG: ${{ github.ref }}

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

  • ENVIRONMENT- Required. The environement to give to Sentry.
  • TAG - Optional. The ref of the tag when the action is used from a release tag. Please keep ${{ github.ref }}, else remove it.
  • RELEASE_VERSION - Optional. Custom version tag. Defaults to ${SENTRY_PROJECT}@$(git describe --always --long).

Attribution

Forked and adapted from Juan Jose Karam Action.

License

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

About

Github action to push a new relese when a tag is created

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published