Skip to content

Update and rename main.yml to backend.yml #1

Update and rename main.yml to backend.yml

Update and rename main.yml to backend.yml #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
paths-ignore:
- 'student-match/**'
- '.vscode/**'
pull_request:
branches: [ main ]
workflow_dispatch:
defaults:
run:
shell: bash
working-directory: ./backend
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- run: npm i
# - run: npm run test
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: ./backend
remote_path: /var/www/cs4279-backend/
remote_host: [email protected]
remote_user: ubuntu
remote_key: "${{ secrets.SSH_PRIVATE_KEY }}"