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

37
.github/workflows/deploy-web.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Deploy-web
on: [workflow_dispatch]
permissions:
contents: read
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Add SSH key to agent
run: |
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "${{ secrets.SK }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan ${{ secrets.HOST }} >> ~/.ssh/known_hosts
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
- name: Build
run: |
npm install
npm run build