-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.18 KB
/
development.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
# Name of workflow
name: Development workflow
# When workflow is triggered
on:
pull_request:
branches:
- dev
# Jobs to carry out
jobs:
deploy:
# Operating system to run job on
runs-on: ubuntu-latest
# Steps in job
steps:
# Get code from repo
- name: Checkout code
uses: actions/checkout@v1
# Install NodeJS
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 14.x
# Run npm install and build on our code
- name: Install Dependency and Build
working-directory: ./frontend
env:
REACT_APP_API: ${{ secrets.REACT_APP_API }}
REACT_APP_STRIPE_PUBLISHABLE_KEY: ${{ secrets.REACT_APP_STRIPE_PUBLISHABLE_KEY }}
REACT_APP_UPLOAD_TYPE: ${{ secrets.REACT_APP_UPLOAD_TYPE }}
run: |
npm ci
npm run build
# Deploy to Netlify using our dev secrets
- name: Deploy to netlify
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --dir=./frontend/build --prod