Action wraps the Sentry CLI to publish new releases on Sentry.io.
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 }}
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
- 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)
.
Forked and adapted from Juan Jose Karam Action.
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.