-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (63 loc) · 1.8 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
63
64
65
name: Deploy
on:
push:
branches:
- master
jobs:
deploy-server:
name: Deploy Server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- id: dokku
name: Deploy to dokku
uses: vitalyliber/[email protected]
env:
PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
HOST: 134.122.123.191
PROJECT: edgsh
DATABASE_URL: ${{ secrets.DATABASE_URL }}
deploy-app:
name: Deploy App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/setup-node@master
with:
node-version: 12.x
env:
REACT_APP_GRAPHQL_URL: https://api.edg.sh
- run: npm i -g lerna
- run: npm run bootstrap
- run: REACT_APP_STRIPE_PUBLISHABLE_KEY=${{ secrets.REACT_APP_STRIPE_PUBLISHABLE_KEY }} npm run build:app
- name: Build with netlify
uses: netlify/actions/cli@master
with:
args: deploy --dir=packages/app/build
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_APP_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
deploy-landing:
name: Deploy Landing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/setup-node@master
with:
node-version: 12.x
- run: npm i -g lerna
- run: npm run bootstrap
- run: npm run build:landing
- name: Build with netlify
uses: netlify/actions/cli@master
with:
args: deploy --dir=packages/landing/out
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_LANDING_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}