Skip to content

Feat/deploy (#9)

Feat/deploy (#9) #1

Workflow file for this run

name: Deploy
on:
push:
branches: [ "main" ]
jobs:
deploy:
steps:

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

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 9, Col: 5): Required property is missing: runs-on
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy
run: |
echo "${{ secrets.EC2_SSH_KEY }}" > ssh_key
chmod 600 ssh_key
ssh -oStrictHostKeyChecking=no -i ssh_key [email protected] "cd /home/ubuntu/pong && git checkout main && git pull origin main && make prod"