Skip to content

feat: upgrade Storybook to latest version, update ViteJS, optimize co… #73

feat: upgrade Storybook to latest version, update ViteJS, optimize co…

feat: upgrade Storybook to latest version, update ViteJS, optimize co… #73

Workflow file for this run

name: Deploy Storybook
on:
workflow_dispatch: {}
push:
branches:
- master
jobs:
deploy-storybook:
name: "Deploy Storybook"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: 18
- run: npm install
- run: npm run-script build-storybook
- uses: wlixcc/[email protected]
with:
username: 'ubuntu' #ssh user name
server: '${{ secrets.SERVER_IP }}' #引用之前创建好的secret
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} #引用之前创建好的secret
local_path: './storybook-static/*' # 对应我们项目build的文件夹路径
remote_path: '/home/ubuntu/components'