Skip to content

Deploy

Deploy #294

Workflow file for this run

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 }}