Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
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 start
# - run: npm run test
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: ./*
remote_path: /var/www/cs4279-backend/
remote_host: [email protected]
remote_user: ubuntu
remote_key: "${{ secrets.SSH_PRIVATE_KEY }}"