Skip to content

Merge branch 'master' of github.com:agutf/master_robotica_ia_web #35

Merge branch 'master' of github.com:agutf/master_robotica_ia_web

Merge branch 'master' of github.com:agutf/master_robotica_ia_web #35

Workflow file for this run

name: Deploy
on: [push]
jobs:
deploy:
if: contains(github.event.head_commit.message, 'deploy')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
- name: Adding Known Hosts
run: ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts
- name: Deploy with rsync
run: rsync -avz --exclude '.git*' . ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:/root/stacks/seguridadUnileonNuevo/html/master