Skip to content

Commit 22206b6

Browse files
Merge pull request #355 from tutorcruncher/deploy-actions
Deploy script
2 parents d671ebd + 9724e43 commit 22206b6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,20 @@ jobs:
5353
run: bash <(curl -s https://codecov.io/bash)
5454
env:
5555
CODECOV_TOKEN: '1b5eacd0-b422-4654-970d-84acdb03cf53'
56+
57+
deploy:
58+
needs:
59+
- test
60+
if: "success() && startsWith(github.ref, 'refs/tags/')"
61+
runs-on: ubuntu-latest
62+
63+
env:
64+
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
65+
HEROKU_APP: tc-morpheus
66+
67+
steps:
68+
- uses: actions/checkout@v2
69+
- run: git fetch --unshallow
70+
- run: git switch master
71+
- run: git remote add heroku https://heroku:[email protected]/$HEROKU_APP.git
72+
- run: git push heroku master

0 commit comments

Comments
 (0)