Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
update no gay
28 lines
585 B
YAML
28 lines
585 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: 'npm'
|
|
- run: npm install
|
|
- run: CI=false npm run build
|
|
|
|
- uses: easingthemes/ssh-deploy@main
|
|
env:
|
|
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
|
|
REMOTE_HOST: ${{ secrets.HOST }}
|
|
ARGS: "-avzr --delete"
|
|
SOURCE: dist/
|
|
REMOTE_USER: root
|
|
TARGET: /root/Home/build |