From 84613e73b05b7b403342f40e58a151cad6fb6ca0 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Sun, 20 Nov 2022 15:30:21 +0100 Subject: [PATCH] Split out publishing for usual CI job This separate one is to be triggered manually for tags. Keep it simple. --- .builds/tests-release.yaml | 9 --------- publish-release.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 publish-release.yaml diff --git a/.builds/tests-release.yaml b/.builds/tests-release.yaml index dce61f7..a4ebc0f 100644 --- a/.builds/tests-release.yaml +++ b/.builds/tests-release.yaml @@ -5,11 +5,9 @@ packages: - docker - docker-compose - python-pip - - twine sources: - https://github.com/pimutils/vdirsyncer secrets: - - a36c8ba3-fba0-4338-b402-6aea0fbe771e - 4d9a6dfe-5c8d-48bd-b864-a2f5d772c536 environment: BUILD: test @@ -40,10 +38,3 @@ tasks: cd vdirsyncer export PATH=$PATH:~/.local/bin/ 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/* diff --git a/publish-release.yaml b/publish-release.yaml new file mode 100644 index 0000000..7d5d866 --- /dev/null +++ b/publish-release.yaml @@ -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/*