Skip to content

Commit 4235c4f

Browse files
author
Jacob Anderson
committed
use same upload for release
1 parent d15ace3 commit 4235c4f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.harness/publish_python_sdk.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,17 @@ pipeline:
289289
connectorRef: account.harbor
290290
image: harbor.devops.indico.io/indico/<+pipeline.variables.service>:<+pipeline.stages.build_info.spec.execution.steps.build_info.output.outputVariables.TEST_IMAGE_TAG>
291291
shell: Sh
292-
command: echo "release"
292+
command: |-
293+
#!/bin/bash
294+
TAG="<+trigger.tag>"
295+
git fetch origin tag $TAG
296+
rm -rf /indico-client/dist
297+
pip3 install twine==3.3.0
298+
python3 setup.py sdist
299+
echo "checking dist files at '.dist/*'"
300+
twine check .dist/*
301+
echo "uploading release ${TAG}"
302+
twine upload -u __token__ -p <+stage.variables.pypi_token> .dist/*
293303
when:
294304
stageStatus: Success
295305
condition: <+<+execution.steps.Info.output.outputVariables.RUN_RELEASE> == "true">

0 commit comments

Comments
 (0)