forked from omaralvarez/deluge-autoremoveplus
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.drone.yml
66 lines (61 loc) · 1.4 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
kind: pipeline
type: docker
name: default
steps:
# note zest does everything, including tagging!
- name: version-tag-changelog
image: python:3-bookworm
commands:
#- git config --global user.email "[email protected]"
#- git config --global user.name "Zest Releaser"
#- git remote set-url origin ${DRONE_GIT_SSH_URL}
#- git config --global push.autoSetupRemote true
- pip install zest.releaser
# TODO: consider towncrier for changelog updates
#- pip install zestreleaser.towncrier
- fullrelease --no-input
#- git push origin --tags
when:
branch:
- master
- name: git-push
image: appleboy/drone-git-push
settings:
ssh_key:
from_secret: github_ssh_key
#remote_name: origin
#branch: "${DRONE_BRANCH}"
#remote: ssh://[email protected]/laur89/deluge-autoremoveplus.git
remote: "${DRONE_GIT_SSH_URL}"
force: false
followtags: true
when:
branch:
- master
- name: build
image: python:3-alpine
commands:
- pip install --no-cache-dir setuptools
- python setup.py bdist_egg
when:
event: tag
- name: github-release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- dist/*
title: "${DRONE_TAG}"
#note: CHANGELOG.md
checksum:
- sha256
when:
event: tag
trigger:
ref:
- refs/heads/master
- refs/heads/develop
- refs/heads/feature/*
- refs/tags/*