feat: 添加部署权限
parent
107726be25
commit
1739adc2b2
|
|
@ -1,24 +1,23 @@
|
||||||
# 工作流名称,可自定义
|
# 工作流名称,可自定义
|
||||||
name: 自动部署
|
name: 自动部署
|
||||||
|
|
||||||
# 事件监听,决定什么时候触发该工作流内的任务
|
# 事件监听,决定什么时候触发该工作流内的任务
|
||||||
on:
|
on:
|
||||||
# 在master分支推动到github时触发
|
# 在master分支推动到github时触发
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
# 任务集合,可包含多个任务
|
# 任务集合,可包含多个任务
|
||||||
jobs:
|
jobs:
|
||||||
# 任务名称
|
# 任务名称
|
||||||
build:
|
build:
|
||||||
# 运行的操作系统
|
# 运行的操作系统
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
# 步骤集合,可包含多个步骤
|
# 步骤集合,可包含多个步骤
|
||||||
steps:
|
steps:
|
||||||
# 单个步骤,没有名称,直接使用一个action
|
# 单个步骤,没有名称,直接使用一个action
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# 单个步骤,带有名称,带有参数
|
# 单个步骤,带有名称,带有参数
|
||||||
- name: build and deploy
|
- name: build and deploy
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ body {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
.arco-menu-inline-header:hover {
|
.arco-menu-inline-header:hover {
|
||||||
background-color: var(--color-neutral-2);
|
background-color: var(--color-fill-2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -75,8 +75,8 @@ body {
|
||||||
}
|
}
|
||||||
.arco-menu {
|
.arco-menu {
|
||||||
.arco-menu-item {
|
.arco-menu-item {
|
||||||
&.arco-menu-selected {
|
&.arco-menu-selected, &:hover {
|
||||||
background-color: @arcoblue-8;
|
background-color: var(--color-fill-2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue