Skip to content

Commit

Permalink
chore: sentry release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed Feb 16, 2023
1 parent a1fd937 commit 3457717
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/sentry-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
release:
runs-on: ubuntu-latest
environment: production
outputs:
version: ${{ steps.set-version.outputs.version }}
steps:
- uses: actions/checkout@v2

Expand All @@ -27,6 +29,10 @@ jobs:
- name: Build and deploy subgraph
run: yarn build

- name: Set version
id: set-version
run: echo "version=v$(cat package.json | jq -r .version)-$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"

- name: Create Sentry release
uses: getsentry/action-release@v1.2.1
env:
Expand All @@ -35,5 +41,6 @@ jobs:
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
version: ${{ steps.set-version.outputs.version }}
sourcemaps: ./dist

0 comments on commit 3457717

Please sign in to comment.