Skip to content

Commit

Permalink
Merge pull request #595 from kids-first/refactor-sentry
Browse files Browse the repository at this point in the history
👷 Add new workflow for sentry releases
  • Loading branch information
dankolbman authored Mar 4, 2021
2 parents 5bd19f8 + 7d3b2c5 commit ecddda2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/gh_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ jobs:
"${upload_url%\{*}?name=$(basename $FILE)"
done < .github/release_assets.txt
fi
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: prd
create_qa_release:
if: github.base_ref == 'master' && github.event.pull_request.merged
runs-on: ubuntu-latest
Expand All @@ -77,3 +69,4 @@ jobs:
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: qa
set_commits: false
21 changes: 21 additions & 0 deletions .github/workflows/sentry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Sentry Releases

on:
push:
tags:
- "*.*.*"

jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: prd
set_commits: false
version: ${{ github.ref }}

0 comments on commit ecddda2

Please sign in to comment.