diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6cda89c0c..c927ad38a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,3 +45,36 @@ jobs: with: name: packages path: release + - name: Save packages + uses: actions/upload-artifact@v3 + with: + name: build + path: package/dist + release: + needs: build + if: ${{ github.ref == 'refs/heads/main' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/download-artifact@v3 + with: + name: build + - name: Create Sentry release + uses: getsentry/action-release@v1 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: ${{ secrets.SENTRY_ORG }} + SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} + SENTRY_URL: https://sentry.eeems.codes + - name: Setup Sentry CLI + uses: mathieu-bour/setup-sentry-cli@v1 + with: + version: latest + url: https://sentry.eeems.codes + token: ${{ secrets.SENTRY_AUTH_TOKEN }} + organization: ${{ secrets.SENTRY_ORG }} + project: ${{ secrets.SENTRY_PROJECT }} + - name: Upload debug artifacts + run: sentry-cli debug-files upload --include-sources .