feat: 完善Space组件 #23
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
# 以下以一个构建vue项目的yml文件为例子 | |
name: CI | |
on: | |
push: | |
branches: | |
- main # 这里只配置了main分支,所以只有推送main分支才会触发以下任务 | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout # 将代码拉取到虚拟机 | |
uses: actions/checkout@v3 | |
- name: actions/[email protected] | |
uses: actions/[email protected] | |
with: | |
node: 16.14.2 | |
- name: Install and Build # 安装依赖、打包,如果提前已打包好无需这一步 | |
run: yarn install && yarn build-storybook | |
- name: Deploy # 部署 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # 部署后提交到那个分支 | |
folder: storybook-static # 这里填打包好的目录名称 |