File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : CI
4
+
5
+ # Controls when the workflow will run
6
+ on :
7
+ # Triggers the workflow on push or pull request events but only for the V1.0-beat branch
8
+ push :
9
+ branches : [ main ]
10
+ pull_request :
11
+ branches : [ main ]
12
+
13
+ # Allows you to run this workflow manually from the Actions tab
14
+ workflow_dispatch :
15
+
16
+ # jobs 表示要执行的一项或者多项任务
17
+ jobs :
18
+ # 任务名,可自定义
19
+ build-and-deploy :
20
+ # runs-on字段指定运行所需要的虚拟机环境。它是必填字段。目前可用的虚拟机如下。
21
+ runs-on : ubuntu-latest
22
+ # steps表示执行步骤
23
+ steps :
24
+ # 检出代码,这里用了 actions/checkout@master 库来完成
25
+ - name : Checkout
26
+ uses : actions/checkout@master
27
+ # 这里展示了如何执行多条命令
28
+ - name : Install and Build
29
+ run : |
30
+ yarn
31
+ yarn build
32
+ # 这里引用了别人写好的发布库,具体参数信息可以查阅上面的链接
33
+ - name : Deploy to GitHub Pages
34
+ uses : JamesIves/github-pages-deploy-action@4.0.0
35
+ with :
36
+ branch : gh-pages
37
+ folder : dist
You can’t perform that action at this time.
0 commit comments