Skip to content

Glasgow 6 | Haroun Alarabi | Full-Stack-Project-Assessment | Level 300 #7

Glasgow 6 | Haroun Alarabi | Full-Stack-Project-Assessment | Level 300

Glasgow 6 | Haroun Alarabi | Full-Stack-Project-Assessment | Level 300 #7

name: Deploy backend to EC2
on:
[push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
- name: Debug SSH Key
run: echo "${{ secrets.EC2_SSH_KEY }}"
- name: Debug SSH Connection
run: ssh -v -i "${{ secrets.EC2_SSH_KEY}}" user@hostname
- name: SSH into Server
run: ssh -i "${{ secrets.EC2_SSH_KEY }}" [email protected] "echo Hello"
script: |
cd server
npm install
npm build
npm i serve

Check failure on line 25 in .github/workflows/backend-ec2-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/backend-ec2-deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
serve -p 3000 build