diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8182821..b176cfd 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -20,7 +20,7 @@ jobs: - name: Configure SSH client run: | eval `ssh-agent -s` - ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}" + echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' | ssh-add - mkdir -p $HOME/.ssh chmod 700 $HOME/.ssh echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> $HOME/.ssh/known_hosts