Skip to content

Commit

Permalink
ci: have sentry enabled bee dashboard (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Jun 30, 2022
1 parent df6c5b2 commit 28b297a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: Install custom Bee Dashboard
if: github.event.inputs.dashboard != ''
run: npm install github:ethersphere/bee-dashboard#${{ github.event.inputs.dashboard }}
env:
REACT_APP_SENTRY_KEY: ${{ secrets.SENTRY_KEY_DASHBOARD }}
REACT_APP_SENTRY_ENVIRONMENT: 'desktop-prerelease'

- name: Replace Version in package.json
uses: jossef/action-set-json-field@v1
Expand Down Expand Up @@ -80,6 +83,8 @@ jobs:
if: matrix.os == 'macos-latest'
run: npx electron-forge publish --arch=arm64
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Sentry release
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ jobs:
- name: Install dependencies
run: npm ci && cd ./installer && npm ci

- name: Read Bee Dashboard version
id: dashboardVersion
uses: ashley-taylor/read-json-property-action@v1.0
with:
path: package.json
property: dependencies.@ethersphere/bee-dashboard

- name: Custom build Bee Dashboard with Sentry enabled
run: npm install ethersphere/bee-dashboard#${{dashboardVersion}}
env:
REACT_APP_SENTRY_KEY: ${{ secrets.SENTRY_KEY_DASHBOARD }}
REACT_APP_SENTRY_ENVIRONMENT: 'desktop'

- name: Set MacOS signing certs
if: matrix.os == 'macos-latest'
run: .github/tools/add-macos-cert.sh
Expand Down

0 comments on commit 28b297a

Please sign in to comment.