Skip to content

Merge pull request #33 from QuickBlox/develop #1

Merge pull request #33 from QuickBlox/develop

Merge pull request #33 from QuickBlox/develop #1

Workflow file for this run

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/"