From fb2872422e4160abcf699d2d8d347be51c9c835d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 4 Oct 2021 09:30:27 +0200 Subject: [PATCH] Added upload script --- notices/pip.txt | 12 ++++++------ scripts/upload.sh | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 scripts/upload.sh diff --git a/notices/pip.txt b/notices/pip.txt index 6e6e9ab7..ac9f0c59 100644 --- a/notices/pip.txt +++ b/notices/pip.txt @@ -1,8 +1,8 @@ upload: prod: cpl: - twine upload --repository-url https://pip.sh-edraft.de dist/sh_cpl/publish/setup/* - twine upload -r pip.sh-edraft.de dist/sh_cpl/publish/setup/* + twine upload --repository-url https://pip.sh-edraft.de dist/sh_cpl-core/publish/setup/* + twine upload -r pip.sh-edraft.de dist/sh_cpl-core/publish/setup/* cli: twine upload --repository-url https://pip.sh-edraft.de dist/sh_cpl-cli/publish/setup/* twine upload -r pip.sh-edraft.de dist/sh_cpl-cli/publish/setup/* @@ -13,8 +13,8 @@ upload: exp: cpl: - twine upload --repository-url https://pip-exp.sh-edraft.de dist/sh_cpl/publish/setup/* - twine upload -r pip-exp.sh-edraft.de dist/sh_cpl/publish/setup/* + twine upload --repository-url https://pip-exp.sh-edraft.de dist/sh_cpl-core/publish/setup/* + twine upload -r pip-exp.sh-edraft.de dist/sh_cpl-core/publish/setup/* cli: twine upload --repository-url https://pip-exp.sh-edraft.de dist/sh_cpl-cli/publish/setup/* @@ -26,8 +26,8 @@ upload: dev: cpl: - twine upload --repository-url https://pip-dev.sh-edraft.de dist/sh_cpl/publish/setup/* - twine upload -r pip-dev.sh-edraft.de dist/sh_cpl/publish/setup/* + twine upload --repository-url https://pip-dev.sh-edraft.de dist/sh_cpl-core/publish/setup/* + twine upload -r pip-dev.sh-edraft.de dist/sh_cpl-core/publish/setup/* cli: twine upload --repository-url https://pip-dev.sh-edraft.de dist/sh_cpl-cli/publish/setup/* diff --git a/scripts/upload.sh b/scripts/upload.sh new file mode 100644 index 00000000..9c27227f --- /dev/null +++ b/scripts/upload.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [ $1 == "-prod" ]; then + twine upload -r pip.sh-edraft.de ../dist/sh_cpl-cli/publish/setup/* + twine upload -r pip.sh-edraft.de ../dist/sh_cpl-core/publish/setup/* + twine upload -r pip.sh-edraft.de ../dist/sh_cpl-query/publish/setup/* +elif [ $1 == "-prod" ]; then + twine upload -r pip-exp.sh-edraft.de ../dist/sh_cpl-cli/publish/setup/* + twine upload -r pip-exp.sh-edraft.de ../dist/sh_cpl-core/publish/setup/* + twine upload -r pip-.sh-edraft.de ../dist/sh_cpl-query/publish/setup/* + +else + twine upload -r pip-dev.sh-edraft.de ../dist/sh_cpl-cli/publish/setup/* + twine upload -r pip-dev.sh-edraft.de ../dist/sh_cpl-core/publish/setup/* + twine upload -r pip-dev.sh-edraft.de ../dist/sh_cpl-query/publish/setup/* +fi