From 338dd023ba278abc4d80747fde889f0c81da2c7d Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Fri, 12 Dec 2025 18:14:20 +0200 Subject: [PATCH] just use rsync and linux again, no windows --- .forgejo/workflows/update.yaml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/update.yaml b/.forgejo/workflows/update.yaml index c8a2c7d..a8144d8 100644 --- a/.forgejo/workflows/update.yaml +++ b/.forgejo/workflows/update.yaml @@ -1,14 +1,17 @@ on: [push] jobs: build: - runs-on: windows-node-iron + runs-on: node-16 steps: - uses: http://github.com/actions/checkout@v4 - - uses: http://github.com/oven-sh/setup-bun@v2 + - uses: http://github.com/oven-sh/setup-bun@v1 + - name: Install Rsync + run: | + apt-get -qq update + apt-get -qq install rsync + shell: bash - run: bun install - shell: powershell - run: bun run prod - shell: powershell - name: Install SSH Key uses: http://github.com/shimataro/ssh-key-action@v2 with: @@ -16,14 +19,6 @@ jobs: name: id_ed25519 known_hosts: 'just-a-placeholder-so-we-dont-get-errors' - name: Adding Known Hosts - run: > - & 'C:\Program Files\Git\usr\bin\ssh-keyscan.exe' vps.sad.ovh | Out-File -Encoding utf8 $env:USERPROFILE\.ssh\known_hosts - shell: powershell - - name: Deploy with scp - run: scp -i C:\Users\ContainerAdministrator\.ssh\id_ed25519 -r .\dist\* ${{ secrets.SSH_USER }}@vps.sad.ovh:/var/www/sad.ovh - shell: powershell - - name: Fix permissions on server - run: | - ssh -i C:\Users\ContainerAdministrator\.ssh\id_ed25519 ${{ secrets.SSH_USER }}@vps.sad.ovh ` - "find /var/www/sad.ovh -type d -exec chmod 755 {} \; && find /var/www/sad.ovh -type f -exec chmod 644 {} \;" - shell: powershell + run: ssh-keyscan -H vps.sad.ovh >> ~/.ssh/known_hosts + - name: Deploy with rsync + run: rsync -avz ./dist/ ${{ secrets.SSH_USER }}@vps.sad.ovh:/var/www/sad.ovh