Last active
January 13, 2023 21:53
-
-
Save remarkablemark/b4623f09ba30ecb162ff775d04bcfa34 to your computer and use it in GitHub Desktop.
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
jobs: | |
custom-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Heroku login credentials | |
run: | | |
cat > ~/.netrc <<EOF | |
machine api.heroku.com | |
login $HEROKU_EMAIL | |
password $HEROKU_API_KEY | |
machine git.heroku.com | |
login $HEROKU_EMAIL | |
password $HEROKU_API_KEY | |
EOF | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }} | |
- name: Add Heroku remote | |
run: heroku git:remote --app $HEROKU_APP_NAME | |
env: | |
HEROKU_APP_NAME: ${{ secrets.HEROKU_APP_NAME }} | |
- name: Push to Heroku | |
run: git push heroku master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment