-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
66 lines (57 loc) · 1.27 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
workspace:
base: /build
pipeline:
relay:
image: node:lts-alpine
commands:
- mkdir build_results
- cd spacerelay
- npm install
- tar cvpzf ../build_results/relay.tgz .
widget:
image: python:3-alpine
commands:
- cd spacewidget
- pip install setuptools wheel
- python3 setup.py sdist bdist_wheel
- cp dist/spacewidget-*.whl ../build_results/
release:
image: plugins/gitea-release
base_url: https://git.core.bckspc.de
secrets: [ gitea_token ]
files: build_results/*
when:
event:
- tag
git:
image: plugins/git-push
secrets:
- target: GIT_PUSH_SSH_KEY
source: github
remote: git@github.com:foosinn/spacewidget.git
branch: master
force: true
gitrelease:
image: plugins/github-release
secrets: [ github_token ]
files: build_results/*
when:
event:
- tag
pypi:
image: python:3-alpine
secrets:
- target: TWINE_PASSWORD
source: pypi
commands:
- cd spacewidget
- pip install twine
- python3 -m twine upload -u foosinn dist/*
npm:
image: plugins/npm
username: foosinn
email: npm@f2o.io
secrets:
- target: PLUGIN_TOKEN
source: npm
folder: spacerelay