From 3fd89d2486d7e768477520b3a6edd26387f65ae1 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales <98922270+ja-rg@users.noreply.github.com> Date: Wed, 6 Mar 2024 13:11:56 -0600 Subject: [PATCH] Deploy Pruebas --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..749c7de --- /dev/null +++ b/.github/workflows/main.yml @@ -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