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
|
run: make build-folders build-linux build-linux-arm build-darwin build-win compress-folders
|
||||||
|
|
||||||
sentry-release:
|
sentry-release:
|
||||||
needs: build-binaries
|
needs: upload-release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Statping Repo
|
- name: Checkout Statping Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setting ENV's
|
- name: Setup Sentry CLI
|
||||||
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
|
uses: mathrix-education/setup-sentry-cli@master
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
url: ${{ secrets.SENTRY_URL }}
|
url: ${{ secrets.SENTRY_URL }}
|
||||||
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
organization: statping
|
organization: statping
|
||||||
project: frontend
|
|
||||||
run: |
|
- name: Setting ENV's
|
||||||
sentry-cli releases new -p frontend v$VERSION
|
run: echo ::set-env name=VERSION::$(cat version.txt)
|
||||||
sentry-cli releases set-commits --auto v$VERSION
|
shell: bash
|
||||||
sentry-cli releases files v$VERSION upload-sourcemaps source/dist
|
|
||||||
|
- name: Sentry Release
|
||||||
|
run: make sentry-release
|
||||||
|
|
||||||
docker-release:
|
docker-release:
|
||||||
needs: [test, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
|
needs: [test, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
|
||||||
|
|
|
@ -489,7 +489,6 @@ jobs:
|
||||||
url: ${{ secrets.SENTRY_URL }}
|
url: ${{ secrets.SENTRY_URL }}
|
||||||
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
organization: statping
|
organization: statping
|
||||||
project: frontend
|
|
||||||
|
|
||||||
- name: Setting ENV's
|
- name: Setting ENV's
|
||||||
run: echo ::set-env name=VERSION::$(cat version.txt)
|
run: echo ::set-env name=VERSION::$(cat version.txt)
|
||||||
|
|
Loading…
Reference in New Issue