deploy web workflow

This commit is contained in:
rustdesk
2026-01-19 15:18:53 +08:00
parent 67f575aea7
commit c4e65babf9
3 changed files with 63 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
rm -rf dist
npm run build
cd dist
ln -s pricing/index.html pricing.html
@@ -11,6 +12,7 @@
ln -s open-source/index.html open-source.html
ln -s ../v2/self-host
ln -s ../v2/web
cp -rf ../zh ./
tar czf x *
scp x ot:/tmp/
ssh ot "sudo tar xzf /tmp/x -C /var/www/html/v3 && /bin/rm /tmp/x && sudo chown www-data:www-data /var/www/html/v3 -R"