Files
paad/.github/workflows/main.yml
Alejandro Rosales 5865ea2799 Regresar al proceso original
Variables
---
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
2024-08-15 18:25:59 +00:00

26 lines
554 B
YAML

name: Deploy Pruebas
on:
push:
branches:
- Pruebas
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: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /usr/share/nginx/html/paad/
git fetch --all
git reset --hard origin/Pruebas