-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 2.08 KB
/
deploy.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Deploy To Heroku
on:
push:
branches:
- master
jobs:
deploy:
name: deploy to heroku
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: what branch is this?
run: git branch
- name: heroku login
uses: actions/heroku@master
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
with:
args: container:login
- name: heroku push
uses: actions/heroku@master
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
api_key: ${{ secrets.api_key }}
client_id: ${{ secrets.client_id }}
client_secret: ${{ secrets.client_secret }}
project_id: ${{ secrets.project_id }}
spreadsheet_id: ${{ secrets.spreadsheet_id }}
spreadsheet_range: ${{ secrets.spreadsheet_range }}
with:
# heroku has 2 process types: web and worker
# web sleeps after 30 on free tier
# worker keeps on chugging along (using up your 500-1000 free "dyno" hours 24/7
# https://devcenter.heroku.com/articles/free-dyno-hours#dyno-sleeping
# https://devcenter.heroku.com/articles/process-model#basics
#
# also only the web process type allows HTTP/HTTPS
# https://devcenter.heroku.com/articles/procfile#the-web-process-type
#
args: container:push -a brainwriting web --arg api_key,client_id,client_secret,project_id,spreadsheet_id,spreadsheet_range
- name: heroku release
uses: actions/heroku@master
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
with:
# heroku has 2 process types: web and worker
# web sleeps after 30 on free tier
# worker keeps on chugging along (using up your 500-1000 free "dyno" hours 24/7
# https://devcenter.heroku.com/articles/free-dyno-hours#dyno-sleeping
# https://devcenter.heroku.com/articles/process-model#basics
#
# also only the web process type allows HTTP/HTTPS
# https://devcenter.heroku.com/articles/procfile#the-web-process-type
#
args: container:release -a brainwriting web