Try out web-deploy action
Some checks failed
/ deploy (push) Failing after 22s

This commit is contained in:
Sangelo 2024-01-10 21:04:09 +01:00
parent baac9b94c1
commit 70cc7213d1

View file

@ -24,32 +24,15 @@ jobs:
- name: Build Hugo Site - name: Build Hugo Site
run: hugo run: hugo
# - name: Set up SSH Key
# run: |
# mkdir -p ~/.ssh
# echo "${{ secrets.SSH_PRIV_KEY }}" > ~/.ssh/id_ed25519
# chmod 600 ~/.ssh/id_ed25519
# - name: Deploy to SSH Host
# run: |
# rsync -avz --delete -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" ./public/ wiki-deploy@${{ secrets.SSH_HOST }}:/var/www/wiki.lunivity.com/
# - name: Remove SSH Key
# run: |
# rm -rf ~/.ssh
# echo "SSH Key removed."
- name: Deploy to Host - name: Deploy to Host
uses: https://github.com/mschmitt/rsync-with-ssh-agent@v2 uses: https://github.com/SamKirkland/web-deploy@v1
with: with:
SSH_KEY: ${{ secrets.SSH_PRIV_KEY }} target-server: ${{ secrets.SSH_HOST }}
SSH_PASSPHRASE: ${{ secrets.SSH_PASSPHRASE }} remote-user: wiki-deploy
SSH_USER: wiki-deploy source-path: ./public
SSH_HOST: ${{ secrets.SSH_HOST }} private-ssh-key: ${{ secrets.SSH_PRIV_KEY }}
SSH_PORT: ${{ secrets.SSH_PORT }} password: ${{ secrets.SSH_PASSPHRASE }}
RSYNC_LOCAL_PATH: . destination-path: /var/www/wiki.lunivity.com/
RSYNC_REMOTE_PATH: '/var/www/wiki.lunivity.com/'
RSYNC_OPTIONS: '--recursive --delete --delete-before --verbose --dry-run'
# - name: Deploy to SSH Host # - name: Deploy to SSH Host
# uses: https://github.com/Creepios/sftp-action@v1.0.5 # uses: https://github.com/Creepios/sftp-action@v1.0.5