forked from michaelBenin/prerender
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (27 loc) · 750 Bytes
/
Copy pathheroku.yml
File metadata and controls
29 lines (27 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Deploy to Heroku
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}
HEROKU_APP: ${{ secrets.HEROKU_APP }}
steps:
- name: Checkout and Deploy
uses: actions/checkout@v1
- 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
- run: heroku git:remote -a $HEROKU_APP
- run: git push heroku HEAD:refs/heads/master