feat: upgrade Storybook to latest version, update ViteJS, optimize co… #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |