Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,26 @@ jobs:
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy-to-server:
runs-on: namespace-profile-default
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Add SSH Private Key
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_PROD }}

- name: Deploy to Server
run: |
ssh -o StrictHostKeyChecking=no ubuntu@43.153.9.233 '
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
cd /home/ubuntu/service/wavespeed-desktop &&
git reset --hard origin/main &&
git pull &&
npm install &&
npm run build
'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules/
# Build outputs
dist/
dist-electron/
dist-web/
out/
release/

Expand Down
53 changes: 14 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
"build:mac:fast": "npm run build && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac --dir",
"build:linux": "npm run build && electron-builder --linux",
"build:all": "npm run build && electron-builder --win --mac --linux",
"dist": "npm run build && electron-builder"
"dist": "npm run build && electron-builder",
"build:web": "vite build",
"preview:web": "vite preview --port 8989 --host 0.0.0.0",
"dev:web": "vite --port 8989 --host 0.0.0.0"
},
"dependencies": {
"@ffmpeg/ffmpeg": "^0.12.15",
Expand Down
Loading