Skip to content

feat: vitepress 更新至最新版本 v1.1.0 #35

feat: vitepress 更新至最新版本 v1.1.0

feat: vitepress 更新至最新版本 v1.1.0 #35

Workflow file for this run

name: deploy to aliyun
on:
workflow_dispatch:
inputs:
name:
description: "Person to greet"
required: true
default: "Owner"
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: "pnpm"
- name: run pnpm install && build
run: |
pnpm install
npm run build
- name: ssh-deploy
uses: easingthemes/ssh-deploy@v2.0.7
env:
SSH_PRIVATE_KEY: ${{ secrets.ACCESS_TOKEN }}
ARGS: "-avz --delete"
SOURCE: "dist/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.TARGET }}