Skip to content

Create main.yml

Create main.yml #7

Workflow file for this run

name: scp files
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: yarn install
- run: yarn build
- name: copy file via ssh password
uses: appleboy/[email protected]
with:
host: ${{ secrets.CN_HOST }}
username: ${{ secrets.CN_USERNAME }}
key: ${{ secrets.CN_KEY }}
port: ${{ secrets.CN_PORT }}
source: "docs/dist/zh-CN/*"
target: ${{ secrets.CN_TARGET }}