2020-10-27 03:33:03 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-03-26 15:10:37 +00:00
|
|
|
name: compliance
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: node:14
|
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2020-10-27 03:33:03 +00:00
|
|
|
name: release
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: node:14
|
|
|
|
commands:
|
|
|
|
- npm install
|
2021-03-26 15:10:37 +00:00
|
|
|
- npm run build
|
2020-10-27 03:33:03 +00:00
|
|
|
- name: archive
|
|
|
|
pull: always
|
|
|
|
image: jolheiser/drone-arc:latest
|
|
|
|
settings:
|
|
|
|
files:
|
|
|
|
- "dist/*"
|
|
|
|
output: dist.tar.gz
|
|
|
|
- name: gitea-release
|
|
|
|
pull: always
|
|
|
|
image: jolheiser/drone-gitea-main:latest
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: gitea_token
|
2021-05-18 15:25:09 +00:00
|
|
|
base: https://git.birbmc.com
|
2020-10-27 03:33:03 +00:00
|
|
|
files:
|
2021-03-26 15:10:37 +00:00
|
|
|
- "dist.tar.gz"
|