mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Split out publishing for usual CI job
This separate one is to be triggered manually for tags. Keep it simple.
This commit is contained in:
parent
a4ef45095e
commit
84613e73b0
2 changed files with 27 additions and 9 deletions
|
|
@ -5,11 +5,9 @@ packages:
|
||||||
- docker
|
- docker
|
||||||
- docker-compose
|
- docker-compose
|
||||||
- python-pip
|
- python-pip
|
||||||
- twine
|
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/pimutils/vdirsyncer
|
- https://github.com/pimutils/vdirsyncer
|
||||||
secrets:
|
secrets:
|
||||||
- a36c8ba3-fba0-4338-b402-6aea0fbe771e
|
|
||||||
- 4d9a6dfe-5c8d-48bd-b864-a2f5d772c536
|
- 4d9a6dfe-5c8d-48bd-b864-a2f5d772c536
|
||||||
environment:
|
environment:
|
||||||
BUILD: test
|
BUILD: test
|
||||||
|
|
@ -40,10 +38,3 @@ tasks:
|
||||||
cd vdirsyncer
|
cd vdirsyncer
|
||||||
export PATH=$PATH:~/.local/bin/
|
export PATH=$PATH:~/.local/bin/
|
||||||
DAV_SERVER=fastmail pytest tests/storage
|
DAV_SERVER=fastmail pytest tests/storage
|
||||||
- check-tag: |
|
|
||||||
# Stop here unless this is a tag.
|
|
||||||
git describe --exact-match --tags || complete-build
|
|
||||||
- publish: |
|
|
||||||
cd vdirsyncer
|
|
||||||
python setup.py sdist bdist_wheel
|
|
||||||
twine upload dist/*
|
|
||||||
|
|
|
||||||
27
publish-release.yaml
Normal file
27
publish-release.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Run new version to PyPI.
|
||||||
|
#
|
||||||
|
# Usage: hut builds submit publish-release.yaml --follow
|
||||||
|
|
||||||
|
image: alpine/edge
|
||||||
|
packages:
|
||||||
|
- py3-pip
|
||||||
|
- py3-setuptools
|
||||||
|
- py3-wheel
|
||||||
|
- twine
|
||||||
|
sources:
|
||||||
|
- https://github.com/pimutils/vdirsyncer
|
||||||
|
secrets:
|
||||||
|
- a36c8ba3-fba0-4338-b402-6aea0fbe771e # PyPI token.
|
||||||
|
environment:
|
||||||
|
CI: true
|
||||||
|
tasks:
|
||||||
|
- check-tag: |
|
||||||
|
cd vdirsyncer
|
||||||
|
git fetch --tags
|
||||||
|
|
||||||
|
# Stop here unless this is a tag.
|
||||||
|
git describe --exact-match --tags || complete-build
|
||||||
|
- publish: |
|
||||||
|
cd vdirsyncer
|
||||||
|
python setup.py sdist bdist_wheel
|
||||||
|
twine upload dist/*
|
||||||
Loading…
Reference in a new issue