Skip to content

Commit

Permalink
Merge branch 'master' into migarjo-patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Johnson committed Jan 13, 2021
2 parents ac8c6e6 + e46d5f8 commit 0bc0425
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,28 @@ jobs:
if: ${{github.ref == 'ref/head/master'}}
runs-on: ubuntu-latest
steps:
- name: start deployment
uses: bobheadxi/deployments@v0.4.3
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: production
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.8.9 # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "migarjo-ruby-books" #Must be unique in Heroku
heroku_email: "mjohn174@gmail.com"
- name: Update result to Deployment API
- name: update deployment status
uses: bobheadxi/deployments@v0.4.3
if: always()
uses: unacast/actions-github-deployment-status@0.4.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
description: "Deployed to Production"
environment_url: "https://migarjo-ruby-books.herokuapp.com/"
env_url: "https://migarjo-ruby-books.herokuapp.com/"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
deploy-to-review:
name: Deploy to Heroku Review
if: ${{github.ref != 'ref/head/master'}}
Expand All @@ -71,7 +79,7 @@ jobs:
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: release
env: review
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.8.9 # This is the action
with:
Expand All @@ -85,5 +93,5 @@ jobs:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
env_url: "https://migarjo-ruby-books.herokuapp.com/"
env_url: "https://migarjo-ruby-books-review.herokuapp.com/"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}

0 comments on commit 0bc0425

Please sign in to comment.