Skip to content

Update aws.yml

Update aws.yml #11

Workflow file for this run

name: CI AWS EC2
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- run: npm ci
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: ./*
remote_path: /var/www/my-app/
remote_host: [email protected]
remote_user: ubuntu
remote_key: "${{ secrets.DEPLOY_KEY }}"