Skip to content

Commit

Permalink
Merge pull request #355 from tutorcruncher/deploy-actions
Browse files Browse the repository at this point in the history
Deploy script
  • Loading branch information
tomhamiltonstubber committed Nov 10, 2021
2 parents d671ebd + 9724e43 commit 7a1f0d6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,18 @@ jobs:
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: '1b5eacd0-b422-4654-970d-84acdb03cf53'

deploy:
needs:
- test
if: "success() && startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest

env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP: tc-morpheus

steps:
- uses: actions/checkout@v2
- run: git remote add heroku https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP.git
- run: git push heroku master:main

0 comments on commit 7a1f0d6

Please sign in to comment.