-
Notifications
You must be signed in to change notification settings - Fork 68
51 lines (47 loc) · 1.81 KB
/
prod.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
name: CI/CD for q-municate.quickblox.com
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- main
# Sequence of patterns matched against refs/tags
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install npm dependencies
run: npm ci
- name: Run build task
run: npm run build
env:
CI: false
REACT_APP_FIREBASE_API_KEY: ${{ vars.FIREBASE_API_KEY }}
REACT_APP_FIREBASE_APP_ID: ${{ vars.FIREBASE_APP_ID }}
REACT_APP_FIREBASE_AUTH_DOMAIN: ${{ vars.FIREBASE_AUTH_DOMAIN }}
REACT_APP_FIREBASE_DATABASE_URL: ${{ vars.FIREBASE_DATABASE_URL }}
REACT_APP_FIREBASE_MESSAGING_SENDER_ID: ${{ vars.FIREBASE_MESSAGING_SENDER_ID }}
REACT_APP_FIREBASE_PROJECT_ID: ${{ vars.FIREBASE_PROJECT_ID }}
REACT_APP_FIREBASE_STORAGE_BUCKET: ${{ vars.FIREBASE_STORAGE_BUCKET }}
REACT_APP_QB_APP_ID: ${{ vars.QB_PROD_APP_ID }}
REACT_APP_QB_ACCOUNT_KEY: ${{ vars.QB_PROD_ACCOUNT_KEY }}
REACT_APP_QB_ENDPOINT_API: ${{ vars.QB_ENDPOINT_API }}
REACT_APP_QB_ENDPOINT_CHAT: ${{ vars.QB_ENDPOINT_CHAT }}
REACT_APP_API_BASE_URL: ${{ vars.API_PROD_BASE_URL }}
REACT_APP_API_AUTH_PATH: ${{ vars.API_AUTH_PATH }}
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: ""
REMOTE_HOST: ${{ secrets.REMOTE_PROD_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_PROD_TARGET }}
EXCLUDE: "/dist/, /node_modules/"