Skip to content

ci(ci): ci modify

ci(ci): ci modify #21

Workflow file for this run

name: Deploy To Tecent ESC
on:
pull_request:
branches: ["master"]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install Dependencies
run: npm install
- name: Build Project
run: npm run build --if-present
- name: Copy Files
uses: xiehuan123/xiehuan-ssh@master
with:
host: ${{ secrets.SSH_HOST }}
user: ${{ secrets.SSH_USERNAME }}
pass: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
local: "./dist/*"
remote: /data/nginx/html