Skip to content

ci(ci): scp modify

ci(ci): scp modify #28

Workflow file for this run

name: Deploy To Tencent ECS
on:
push:
branches: ["master"]
jobs:
Deploy-ECS:
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 & Build
run: |
npm install
npm run build
# - 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
- name: copy using password
uses: srueda99/scp-action@v12
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
origin: "./dist/*"
destination: "/data/nginx/html"