Skip to content

Commit dd5e41f

Browse files
author
Vidas Pažusis
committed
Deploy latest dev to heroku
1 parent 8181ee1 commit dd5e41f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/heroku-latest.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy latest dev to heroku
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Login to Heroku Container registry
13+
env:
14+
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
15+
HEROKU_DEV_APP: ${{ secrets.HEROKU_DEV_APP }}
16+
if: env.HEROKU_DEV_APP != ''
17+
run: heroku container:login
18+
- name: Build and push
19+
env:
20+
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
21+
HEROKU_DEV_APP: ${{ secrets.HEROKU_DEV_APP }}
22+
if: env.HEROKU_DEV_APP != ''
23+
run: heroku container:push -a ${{ secrets.HEROKU_DEV_APP }} web
24+
- name: Release
25+
env:
26+
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
27+
HEROKU_DEV_APP: ${{ secrets.HEROKU_DEV_APP }}
28+
if: env.HEROKU_DEV_APP != ''
29+
run: heroku container:release -a ${{ secrets.HEROKU_DEV_APP }} web

0 commit comments

Comments
 (0)