Skip to content

Commit

Permalink
Tag releases with sentry-cli (getsentry#1718)
Browse files Browse the repository at this point in the history
* tag releases with sentry-cli

* comment out action-prepare-release for testing

* add sentry debug log level

* add auth token secret

* add sentry url

Co-authored-by: Ethan Smith <[email protected]>

Co-authored-by: Ethan Smith <[email protected]>
  • Loading branch information
hubertdeng123 and emmatyping authored Sep 23, 2022
1 parent b95e926 commit 196b40f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,21 @@ jobs:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
calver: true
- name: Create new release in self-hosted Sentry
env:
SENTRY_DSN: 'https://[email protected]/3'
SENTRY_ORG: self-hosted
SENTRY_PROJECT: installer
SENTRY_URL: https://self-hosted.getsentry.net/
SENTRY_AUTH_TOKEN: ${{ secrets.SELF_HOSTED_RELEASE_TOKEN }}
SENTRY_RELEASE: ${{ github.event.inputs.version }}
run: |
curl -sL https://sentry.io/get-cli/ | bash
# Create new Sentry release
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases new -p $SENTRY_PROJECT $SENTRY_RELEASE
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases set-commits --auto $SENTRY_RELEASE
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases finalize $SENTRY_RELEASE
# Create new deploy for this Sentry release
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases deploys $SENTRY_RELEASE new -e production

0 comments on commit 196b40f

Please sign in to comment.