Deploy #287
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |