Merge pull request #65 from jekyll/dependabot/go_modules/golang.org/x… #46
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
name: "Deploy" | |
on: | |
push: | |
branches: | |
- main | |
- deploy-with-actions | |
concurrency: "heroku" | |
jobs: | |
custom-deploy: | |
name: "Deploy to Heroku" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # fetch full clone | |
- 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 |