Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
usatie committed Oct 26, 2023
1 parent e6a291e commit eab0a4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Deploy

on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]

Expand All @@ -16,4 +18,4 @@ jobs:
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"
ssh -oStrictHostKeyChecking=no -i ssh_key [email protected] "cd /home/ubuntu/pong && git fetch && git checkout ${{ github.sha }} && make prod"

0 comments on commit eab0a4c

Please sign in to comment.