-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 1.15 KB
/
testing.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
name: "Tests"
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create firebasekey.json
uses: jsdaniell/[email protected]
if: github.ref == 'refs/heads/main'
with:
name: "firebasekey.json"
json: ${{ secrets.FIREBASE_KEY }}
- name: Build, Push and Deploy to Heroku Main Server
id: heroku-main
uses: akhileshns/[email protected]
if: github.ref == 'refs/heads/main'
with:
heroku_email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
usedocker: True
stack: container
- name: Build, Push and Deploy to Heroku Test Server
id: heroku-test
uses: akhileshns/[email protected]
if: github.ref != 'refs/heads/main'
with:
heroku_email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_TEST_APP_NAME }}
usedocker: True
stack: container