Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AlekSIS®
Official
AlekSIS
Commits
1031dbfd
Commit
1031dbfd
authored
Mar 09, 2021
by
Tom Teichler
🍻
Browse files
Revert "Merge branch 'feature/always-local-pypi' into 'master'"
This reverts merge request
!18
parent
cd35824d
Pipeline
#6217
passed with stage
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ci/publish/pypi.yml
View file @
1031dbfd
deploy_gitlab
:
stage
:
publish
script
:
-
if [ x$CI_COMMIT_REF_NAME = x$CI_COMMIT_TAG ]; then
-
if [ $CI_COMMIT_REF_NAME = master ]; then
poetry version $(poetry version | cut -d" " -f2)+$(date --date=${CI_COMMIT_TIMESTAMP} +%Y%m%d%H%M%S).${CI_COMMIT_SHORT_SHA} ;
elif [ x$CI_COMMIT_REF_NAME = x$CI_COMMIT_TAG ]; then
if ! [ "$(poetry version | cut -d" " -f2)" = $CI_COMMIT_REF_NAME ]; then
echo "Package version does not match tag. Aborting build of tag!" >/dev/fd/2 ;
exit 1 ;
fi ;
else ;
poetry version $(poetry version | cut -d" " -f2)+$(date --date=${CI_COMMIT_TIMESTAMP} +%Y%m%d%H%M%S).${CI_COMMIT_SHORT_SHA} ;
fi
-
poetry publish -r gitlab
only
:
-
master
-
tags
deploy_pypi
:
stage
:
publish
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment