uhr/.drone.yml

64 lines
1.2 KiB
YAML
Raw Normal View History

kind: pipeline
name: default
steps:
- name: prepare
image: node:12
commands:
- npm install
- name: audit
image: node:12
failure: ignore
commands:
- npm audit
- name: build
image: node:12
commands:
- npm run build:prod
2019-05-10 15:23:56 +02:00
- name: pre-release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gittr.ch/
checksum:
- md5
- sha512
draft: true
files: dist/*
note: README.md
title: VERSION
when:
branch: develop
- name: test-release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gittr.ch/
checksum:
- md5
- sha512
draft: true
files: dist/*
note: README.md
prerelease: true
title: VERSION
when:
branch: feature/*
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gittr.ch/
checksum:
- md5
- sha512
files: dist/*
file_exists: fail
note: README.md
title: VERSION
when:
event: tag