-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 985 Bytes
/
main.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
name: React and Express app deployment
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout React App
uses: actions/checkout@v2
- name: Install and build React app
run: cd client && npm install && npm run build
- name: Deploy React app
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: client/build # The folder the action should deploy.
- name: Checkout Express App
uses: akhileshns/heroku-deploy@v3.12.12 # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: photos-custom-directives #Must be unique in Heroku
heroku_email: shadedvoxels@gmail.com
appdir: server
env:
HD_JWT_SECRET_KEY: ${{secrets.HD_JWT_SECRET_KEY}}
HD_MONGO_URI: ${{secrets.HD_MONGO_URI}}