Skip to content

Release notifications: sentry and slack #4

Release notifications: sentry and slack

Release notifications: sentry and slack #4

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