diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 938d7d4..4dd9399 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -17,6 +17,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + # Preveri, ali je rsync nameščen, sicer ga namesti + - name: Ensure rsync is installed + run: | + if ! command -v rsync >/dev/null; then + sudo apt-get update + sudo apt-get install -y rsync + fi + # Ta korak se vedno izvede - priprava SSH ključa - name: Setup SSH run: | @@ -48,4 +56,4 @@ jobs: --exclude=".gitignore" \ -e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \ ./ \ - ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_MASTER_DIR }} \ No newline at end of file + ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_MASTER_DIR }}