From ce21eff240b04262ff03f08228e906057aaf9124 Mon Sep 17 00:00:00 2001 From: kaxada Date: Mon, 21 Aug 2023 20:11:25 +0300 Subject: [PATCH] fixed ssh version errors --- .github/workflows/deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 130c986..05f92e5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,7 +34,6 @@ jobs: deploy: needs: build runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' && github.event_name == 'push' steps: - uses: actions/checkout@v3 @@ -45,7 +44,7 @@ jobs: path: build - name: remove old build - uses: appleboy/ssh-action@0.1.10 + uses: appleboy/ssh-action@v1.0.0 with: host: ${{ secrets.DROPLET_IP_ADDRESS }} username: ${{ secrets.SSHUSERNAME }} @@ -64,7 +63,7 @@ jobs: remote: "/var/www/gh-copilot/" - name: restart nginx - uses: appleboy/ssh-action@0.1.10 + uses: appleboy/ssh-action@v1.0.0 with: host: ${{ secrets.DROPLET_IP_ADDRESS }} username: ${{ secrets.SSHUSERNAME }}