From ee70f3f03e4a508333068772b21c7a58829e68c8 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 19 Jan 2024 17:31:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Delete=20.github/workflows/deplo?= =?UTF-8?q?y.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 36 ------------------------------------ 1 file changed, 36 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 7769d9a..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build and Deploy - -on: - push: - branches: - - main - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Build project - run: | - cargo build --release - - - name: Install rsync and ssh - run: | - sudo apt-get update - sudo apt-get install -y rsync openssh-client - - - name: Set up SSH - env: - SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }} - run: | - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts - - - name: Rsync binary to remote server - run: | - rsync -avz --progress -e "ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" ./target/release/api ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }}