Skip to content

Commit

Permalink
Merge branch 'developer' of https://github.com/MiguelProgrammer/neigh…
Browse files Browse the repository at this point in the history
…borfood-v2 into developer
  • Loading branch information
MiguelProgrammer committed Sep 29, 2024
2 parents 7ff7618 + 6e4beac commit fadc54f
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
name: Push-to-EC2
name: Publica ec2
on:
push:
branches:
- developer
jobs:
deploy:
name: Deploy to EC2
name: Deploy to EC2 on master branch push
runs-on: ubuntu-latest

steps:
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2

- name: Checkout the files
uses: actions/checkout@v3
uses: actions/checkout@v2

- name: Copy files with SSH
- name: Deploy to Server 1
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{secrets.SSH}}
SOURCE: "./"
REMOTE_HOST: ${{secrets.REMOTE_HOST}}
REMOTE_USER: ${{secrets.REMOTE_USER}}
TARGET: ${{secrets.TARGET_DIR}}
SSH_PRIVATE_KEY: ${{ secrets.SSH }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.TARGET_DIR }}

- name: Executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH }}


0 comments on commit fadc54f

Please sign in to comment.