Automatically deploy to Alpha #5952
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: Automatically deploy to Alpha | |
on: | |
# Run this AFTER the unit test job finishes | |
workflow_run: | |
# Must be the same as in unittests.yml, cypresstests.yml | |
workflows: ["Unit tests", "Cypress tests"] | |
branches: [main] | |
types: | |
- completed | |
jobs: | |
deploy: | |
# Deploy ONLY IF the tests actually succeeded (if they failed, we don't wanna deploy) | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: akhileshns/[email protected] # This is the action | |
with: | |
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | |
heroku_app_name: hedy-alpha | |
heroku_email: [email protected] |