website/.drone.yml

45 lines
749 B
YAML
Raw Normal View History

---
kind: pipeline
name: compliance
trigger:
event:
- pull_request
steps:
- name: build
pull: always
image: node:14
commands:
- npm install
- npm run build
---
kind: pipeline
name: release
trigger:
event:
- push
branch:
- main
steps:
- name: build
pull: always
image: node:14
commands:
- npm install
- npm run build
- 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
base: https://git.birbmc.com
files:
- "dist.tar.gz"