Merge pull request #10 from Team5599/main #3
Workflow file for this run
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: Heroku Deployment | |
on: | |
pull_request: | |
branches: [heroku] | |
types : [closed] | |
push: | |
branches: [heroku] | |
jobs: | |
deploy: | |
if: github.ref == 'refs/heads/heroku' && github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: akhileshns/[email protected] # External action to push to the heroku repository | |
with: | |
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | |
heroku_app_name: ${{secrets.HEROKU_APP_NAME}} | |
heroku_email: ${{secrets.HEROKU_EMAIL}} | |
- run: | | |
echo Pull request merged and deployed to Heroku |