-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (33 loc) · 1.12 KB
/
cl.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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: [ master ]
pull_request:
branches: [ master ]
# 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/[email protected]
with:
branch: gh-pages
folder: dist