Deploy Pruebas

This commit is contained in:
Alejandro Rosales
2024-03-06 13:11:56 -06:00
committed by GitHub
parent a914012935
commit 3fd89d2486

26
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
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/main