From d048f3e99e337bc355591ae1b02c914fdd0531bc Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 8 Mar 2023 17:06:01 +0100 Subject: build: Upload Windows pdb to Sentry via CI (#205) Uploads the Windows debug symbols to sentry.io via CI --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a97647fd..d8223d35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,6 +61,18 @@ jobs: src-tauri/target/release/bundle/appimage/*AppImage* src-tauri/target/release/bundle/msi/*msi* src-tauri/target/release/app.pdb + - name: Install sentry-cli (Windows only) + if: matrix.platform == 'windows-latest' + run: | + curl --location --output sentry-cli.exe "https://release-registry.services.sentry.io/apps/sentry-cli/latest?response=download&arch=x86_64&platform=Windows&package=sentry-cli" + - name: Run sentry-cli to upload pdb (Windows only) + if: matrix.platform == 'windows-latest' + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: northstar-kv + SENTRY_PROJECT: flightcore + run: | + ./sentry-cli.exe upload-dif --wait src-tauri/target/release/app.pdb - name: Release uses: softprops/action-gh-release@v1 with: -- cgit v1.2.3