Release notifications: sentry and slack #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Notifications | |
| on: | |
| release: | |
| types: [ published ] | |
| push: | |
| jobs: | |
| release: | |
| name: Notify Sentry and Slack | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create Sentry release | |
| uses: getsentry/action-release@v1 | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| SENTRY_ORG: ${{ secrets.SENTRY_ORG_SLUG }} | |
| with: | |
| environment: production | |
| projects: ${{ secrets.SENTRY_PROJECT_SLUG_IOS }} ${{ secrets.SENTRY_PROJECT_SLUG_ANDROID }} | |
| version: 5.0.3 | |
| - name: Slack Notification | |
| env: | |
| SLACK_URL: ${{ secrets.SLACK_URL }} | |
| run: | | |
| curl -X POST -H 'Content-type: application/json' --data '{"text":"New release of the Probe Multiplatform app: ${{ github.ref }}"}' $SLACK_URL |