pull/773/merge
hunterlong 2020-08-12 23:19:54 -07:00
parent 9223647331
commit 1ff3cd5821
2 changed files with 14 additions and 23 deletions

View File

@ -482,22 +482,7 @@ jobs:
- name: Checkout Statping Repo
uses: actions/checkout@v2
- name: Setting ENV's
run: echo ::set-env name=VERSION::$(cat version.txt)
shell: bash
- name: Sentry Backend Release
uses: tclindner/sentry-releases-action@v1.0.0
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_ORG: statping
SENTRY_PROJECT: backend
with:
tagName: v${{ env.VERSION }}
environment: production
- name: Sentry Frontend Release
- name: Setup Sentry CLI
uses: mathrix-education/setup-sentry-cli@master
with:
version: latest
@ -505,10 +490,13 @@ jobs:
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
organization: statping
project: frontend
run: |
sentry-cli releases new -p frontend v$VERSION
sentry-cli releases set-commits --auto v$VERSION
sentry-cli releases files v$VERSION upload-sourcemaps source/dist
- name: Setting ENV's
run: echo ::set-env name=VERSION::$(cat version.txt)
shell: bash
- name: Sentry Release
run: make sentry-release
homebrew-release:
needs: upload-release

View File

@ -330,11 +330,14 @@ valid-sign:
gpg --verify statping.asc
sentry-release:
sentry-cli releases --org statping new -p backend -p frontend v${VERSION}
sentry-cli releases --org statping set-commits v${VERSION} --auto
sentry-cli releases --org statping --project backend new v${VERSION}
sentry-cli releases --org statping --project backend set-commits v${VERSION} --auto
sentry-cli releases --org statping --project backend finalize v${VERSION}
sentry-cli releases --org statping --project frontend new v${VERSION}
sentry-cli releases --org statping --project frontend set-commits v${VERSION} --auto
sentry-cli releases --org statping --project frontend files v${VERSION} upload ./frontend/dist
sentry-cli releases --org statping --project frontend files v${VERSION} upload-sourcemaps ./frontend/dist --no-sourcemap-reference
sentry-cli releases --org statping finalize v${VERSION}
sentry-cli releases --org statping --project frontend finalize v${VERSION}
download-bins: clean
mkdir build || true