sentry github workflow

pull/773/merge
hunterlong 2020-08-10 15:08:16 -07:00
parent 27249bd22e
commit b9cee7a796
2 changed files with 52 additions and 9 deletions

View File

@ -387,6 +387,47 @@ jobs:
MJML_PRIVATE: ${{ secrets.MJML_PRIVATE }}
run: make build-folders build-linux build-linux-arm build-darwin build-win compress-folders
sentry-release:
needs: build-binaries
runs-on: ubuntu-latest
steps:
- name: Checkout Statping Repo
uses: actions/checkout@v2
- name: Setting ENV's
run: echo ::set-env name=VERSION::$(cat version.txt)
shell: bash
- name: Download Compiled Frontend (rice-box.go)
uses: actions/download-artifact@v1
with:
name: static-rice-box
path: ./source
- 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: dev
- name: Sentry Frontend Release
uses: mathrix-education/setup-sentry-cli@master
with:
version: latest
url: ${{ secrets.SENTRY_URL }}
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
docker-release:
needs: [test, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
runs-on: ubuntu-latest

View File

@ -498,15 +498,17 @@ jobs:
environment: production
- name: Sentry Frontend 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: frontend
uses: mathrix-education/setup-sentry-cli@master
with:
tagName: v${{ env.VERSION }}
environment: production
version: latest
url: ${{ secrets.SENTRY_URL }}
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
homebrew-release:
needs: upload-release
@ -537,7 +539,7 @@ jobs:
shell: bash
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2.0.0
uses: rtCamp/action-slack-notify@master
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_URL }}
SLACK_CHANNEL: dev