forked from scutrobotlab/Robot_Monitor_Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
34 lines (30 loc) · 775 Bytes
/
.drone.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
kind: pipeline
name: default
steps:
- name: frontend
image: node
commands:
- cd frontend
- npm ci --registry=https://registry.npm.taobao.org
- npm run build
- name: backend
image: golang
commands:
- sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
- sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
- apt-get update
- apt-get install -y zip upx
- sh build_go.sh
- name: gitea_release
image: plugins/gitea-release
settings:
base_url:
from_secret: gitea_url
api_key:
from_secret: gitea_token
files:
- Robot_Monitor_Web_linux.zip
- Robot_Monitor_Web_mac.zip
- Robot_Monitor_Web_windows.zip
when:
event: tag