-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (30 loc) · 939 Bytes
/
deploy.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
name: Deploy
on:
workflow_run:
workflows:
- Verify
branches:
- main
types:
- completed
concurrency:
group: production
env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_TEST_KEY }}
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to Hatchbox
uses: hatchboxio/github-hatchbox-deploy-action@v2
with:
deploy_key: ${{ secrets.HATCHBOX_DEPLOY_KEY }}
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Notify Honeybadger
run: RAILS_ENV=test bundle exec honeybadger deploy --environment production --revision ${{ github.sha }} --repository ${{ github.repository }} --user ${{ github.actor }} --api-key ${{ secrets.HONEYBADGER_API_KEY }}