update: update README file #39
This file contains hidden or 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
| # This is a basic workflow to help you get started with Actions | |
| name: CI | |
| # Controls when the workflow will run | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the V1.0-beat branch | |
| push: | |
| branches: [ V1.0-beat ] | |
| pull_request: | |
| branches: [ V1.0-beat ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # jobs 表示要执行的一项或者多项任务 | |
| jobs: | |
| # 任务名,可自定义 | |
| build-and-deploy: | |
| # runs-on字段指定运行所需要的虚拟机环境。它是必填字段。目前可用的虚拟机如下。 | |
| runs-on: ubuntu-latest | |
| # steps表示执行步骤 | |
| steps: | |
| # 检出代码,这里用了 actions/checkout@master 库来完成 | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| # 这里展示了如何执行多条命令 | |
| - name: Install and Build | |
| run: | | |
| yarn | |
| yarn build | |
| # 这里引用了别人写好的发布库,具体参数信息可以查阅上面的链接 | |
| - name: Deploy to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@4.0.0 | |
| with: | |
| branch: gh-pages | |
| folder: dist |