Skip to content

Commit

Permalink
sentry using dart test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kwek20 committed Jun 11, 2024
1 parent 426af6a commit 203eff1
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/main_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
build_web:
runs-on: ubuntu-latest
environment: staging
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_RELEASE: ${{ github.sha }}
steps:
- uses: actions/checkout@v4
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
Expand All @@ -32,11 +29,32 @@ jobs:
run: ./scripts/prepare-web.sh
- name: Build Release Web
run: ./scripts/build-web.sh
- name: Update sentry
run: dart run sentry_dart_plugin


- name: Upload files
uses: actions/upload-artifact@v3
with:
name: web
path: build/web
path: build/web

update_sentry:
runs-on: ubuntu-latest
needs: build_web
environment: staging
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_RELEASE: ${{ github.sha }}
steps:
- uses: actions/checkout@v4
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: Download web
uses: actions/download-artifact@v3
with:
name: web
path: build/web
- name: test
run: echo ${{ vars.SENTRY_ORG }}
- name: Update sentry
run: flutter packages pub run sentry_dart_plugin

0 comments on commit 203eff1

Please sign in to comment.