Skip to content

feat: add coming soon on statistics #13

feat: add coming soon on statistics

feat: add coming soon on statistics #13

Workflow file for this run

name: Deploy to Dev Server
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
deploy:
runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: '20'
- name: Install Dependencies
run: npm install
- name: Build React App
run: npm run build
- name: Deploy via SCP
uses: appleboy/[email protected]
with:
host: ${{ vars.SERVER_HOST }}
username: ${{ vars.SERVER_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ vars.SERVER_SSH_PORT }}
source: './dist/*'
target: ${{ vars.DEPLOY_TARGET }}
rm: true
- name: Restart nginx
uses: appleboy/[email protected]
with:
host: ${{ vars.SERVER_HOST }}
username: ${{ vars.SERVER_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ vars.SERVER_SSH_PORT }}
script: sudo systemctl restart nginx