mirror of https://github.com/statping/statping
workflow
parent
1ff3cd5821
commit
a0cd2f1d6a
|
@ -384,45 +384,26 @@ jobs:
|
|||
run: make build-folders build-linux build-linux-arm build-darwin build-win compress-folders
|
||||
|
||||
sentry-release:
|
||||
needs: build-binaries
|
||||
needs: upload-release
|
||||
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
|
||||
- name: Setup Sentry CLI
|
||||
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
|
||||
|
||||
- name: Setting ENV's
|
||||
run: echo ::set-env name=VERSION::$(cat version.txt)
|
||||
shell: bash
|
||||
|
||||
- name: Sentry Release
|
||||
run: make sentry-release
|
||||
|
||||
docker-release:
|
||||
needs: [test, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
|
||||
|
|
|
@ -489,7 +489,6 @@ jobs:
|
|||
url: ${{ secrets.SENTRY_URL }}
|
||||
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
organization: statping
|
||||
project: frontend
|
||||
|
||||
- name: Setting ENV's
|
||||
run: echo ::set-env name=VERSION::$(cat version.txt)
|
||||
|
|
Loading…
Reference in New Issue