forked from forem/forem
-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 893 Bytes
/
cd.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
name: CD
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
concurrency: ${{ matrix.environment }}
environment: ${{ matrix.environment }}
strategy:
matrix:
environment: [ production, staging ]
steps:
- uses: actions/checkout@v4
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
- uses: honeybadger-io/github-notify-deploy-action@v1
with:
api_key: ${{ secrets.HONEYBADGER_API_KEY_RUBY }}
if: matrix.environment == 'production'
- uses: honeybadger-io/github-notify-deploy-action@v1
with:
api_key: ${{ secrets.HONEYBADGER_API_KEY_JAVASCRIPT }}
if: matrix.environment == 'production'