From c2b36831b4e6b8ae43c8a434f1d0d0e95f0136db Mon Sep 17 00:00:00 2001 From: Jake Liu <13583702+LittleJake@users.noreply.github.com> Date: Wed, 8 Feb 2023 17:39:11 +0800 Subject: [PATCH] Delete deploy.yml --- .github/workflows/deploy.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 54fe9c6..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Deploy - -on: - release: - types: [ released ] -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Setup SSH - uses: LittleJake/ssh-key-and-known-hosts-action@v1.1.0 - with: - # Private key required to access the host - ssh-private-key: ${{ secrets.SSH_PK }} - # Hostname or IP to add to the known hosts file - ssh-host: ${{ secrets.SSH_IP }} - # Port for key-scanning the server - ssh-port: ${{ secrets.SSH_PORT }} # optional - - name: Deployment - run: | - ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_IP }} -p ${{ secrets.SSH_PORT }} "cd ${{ secrets.SSH_DEVELOP_PATH }};sudo git pull;sudo chown -R apache:apache ." >/dev/null 2>&1 - exit \ No newline at end of file