-
Notifications
You must be signed in to change notification settings - Fork 1.4k
42 lines (39 loc) · 1.42 KB
/
build-and-deploy-prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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