Skip to content

Commit a8c3c56

Browse files
committed
another try with new logic
1 parent 29261ea commit a8c3c56

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/heroku-deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ jobs:
2222
env:
2323
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
2424
run: heroku container:login
25-
- name: Deploy to production
26-
env:
27-
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
28-
run: git push https://heroku:${{ secrets.HEROKU_API_KEY }}@git.heroku.com/djangosnippets.git HEAD:main
29-
25+
- name: Add remote origin
26+
run: |
27+
git remote add heroku https://heroku:${{ secrets.HEROKU_API_KEY }}@git.heroku.com/${{ secrets.HEROKU_APP_NAME }}.git
28+
- name: Deploy to Heroku
29+
run: |
30+
git push heroku HEAD:main -f

0 commit comments

Comments
 (0)