name: Notify Sentry and Slack # # Comment the `on:` section below if you want to stop deploys # on: push: branches: - master jobs: slack: name: Notify Slack of start of deploy runs-on: ubuntu-20.04 if: github.repository == 'posthog/posthog' steps: - name: Notify Platform team on slack uses: rtCamp/action-slack-notify@v2 env: SLACK_CHANNEL: platform-bots SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' SLACK_ICON: https://github.com/posthog.png?size=48 SLACK_MESSAGE: 'Production Cloud Deploy Beginning :rocket: - ${{ github.event.head_commit.message }}' SLACK_TITLE: Message SLACK_USERNAME: Max Hedgehog SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} sentry: name: Notify Sentry of a production release runs-on: ubuntu-20.04 if: github.repository == 'PostHog/posthog' steps: - name: Checkout master uses: actions/checkout@v3 - name: Notify Sentry uses: getsentry/action-release@v1 env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_ORG: posthog SENTRY_PROJECT: posthog with: environment: production