-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (37 loc) · 1.27 KB
/
deploy-to-cb.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
name: Deploy to Heroku (UAT)
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
app_name: [ 'unistudents-uat' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download Student-service Jar archive
uses: robinraju/[email protected]
with:
repository: "UniStudents/student-service"
latest: true
fileName: "student-service-full.jar"
token: ${{ secrets.GH_TOK }}
- name: Download eLearning-service Jar archive
uses: robinraju/[email protected]
with:
repository: "UniStudents/elearning-service"
latest: true
fileName: "elearning-service-full.jar"
token: ${{ secrets.GH_TOK }}
- run: find ./libs -name "student-*.jar" -exec cp student-service-full.jar {} \;
- run: find ./libs -name "elearning-*.jar" -exec cp elearning-service-full.jar {} \;
- name: Deploy to Heroku
uses: akhileshns/[email protected] # This is the Heroku deployment action
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ matrix.app_name }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}