diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 19d5615..be163af 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,12 +19,19 @@ jobs: - name: Deploy to Digital Ocean run: | ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "pkill -f agent-wireguard" - echo "Removing old agent-wireguard and download_binary.sh" + + - name: Deploy to Digital Ocean + run: | ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "rm -f download_binary.sh agent-wireguard" - echo "Copying new agent-wireguard and download_binary.sh" + + - name: Deploy to Digital Ocean + run: | scp -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -P ${{ secrets.SSH_PORT }} scripts/download_binary.sh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:~/download_binary.sh - echo "Downloading new agent-wireguard" + + - name: Deploy to Digital Ocean + run: | ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} ". ./download_binary.sh" - echo "Starting new agent-wireguard" + + - name: Deploy to Digital Ocean + run: | ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "./agent-wireguard" - echo "Done"