Files
paad/.github/workflows/main.yml

27 lines
545 B
YAML

name: Deploy Pruebas
on:
push:
branches:
- Master
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pruebasPAAD
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy to Server
uses: appleboy/ssh-action@master
with:
host: ${{ PAAD_SERVER_IP }}
username: ${{ PAAD_SERVER_USER }}
key: ${{ PAAD_SSH_PRIVATE_KEY }}
script: |
cd /usr/share/nginx/html/paad/
git fetch --all
git reset --hard origin/Pruebas