Skip to content

Commit 84613e7

Browse files
committed
Split out publishing for usual CI job
This separate one is to be triggered manually for tags. Keep it simple.
1 parent a4ef450 commit 84613e7

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

.builds/tests-release.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ packages:
55
- docker
66
- docker-compose
77
- python-pip
8-
- twine
98
sources:
109
- https://github.com/pimutils/vdirsyncer
1110
secrets:
12-
- a36c8ba3-fba0-4338-b402-6aea0fbe771e
1311
- 4d9a6dfe-5c8d-48bd-b864-a2f5d772c536
1412
environment:
1513
BUILD: test
@@ -40,10 +38,3 @@ tasks:
4038
cd vdirsyncer
4139
export PATH=$PATH:~/.local/bin/
4240
DAV_SERVER=fastmail pytest tests/storage
43-
- check-tag: |
44-
# Stop here unless this is a tag.
45-
git describe --exact-match --tags || complete-build
46-
- publish: |
47-
cd vdirsyncer
48-
python setup.py sdist bdist_wheel
49-
twine upload dist/*

publish-release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Run new version to PyPI.
2+
#
3+
# Usage: hut builds submit publish-release.yaml --follow
4+
5+
image: alpine/edge
6+
packages:
7+
- py3-pip
8+
- py3-setuptools
9+
- py3-wheel
10+
- twine
11+
sources:
12+
- https://github.com/pimutils/vdirsyncer
13+
secrets:
14+
- a36c8ba3-fba0-4338-b402-6aea0fbe771e # PyPI token.
15+
environment:
16+
CI: true
17+
tasks:
18+
- check-tag: |
19+
cd vdirsyncer
20+
git fetch --tags
21+
22+
# Stop here unless this is a tag.
23+
git describe --exact-match --tags || complete-build
24+
- publish: |
25+
cd vdirsyncer
26+
python setup.py sdist bdist_wheel
27+
twine upload dist/*

0 commit comments

Comments
 (0)