Skip to content

github actions - deploy #1

github actions - deploy

github actions - deploy #1

Workflow file for this run

name: Deploying on EC2
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:

Check failure on line 11 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- name: Deploying on EC2
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.EC2_HOST }}
key: $${{ secrets.EC2_SSH_KEY }}
username: ubuntu
script: |
git pull origin main
npm i
npm run start