Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Paruch Group
Hystorian
Commits
68ef4ade
Commit
68ef4ade
authored
Sep 07, 2021
by
Loïc Musy
Browse files
Update .gitlab-ci.yml file
parent
611a1854
Pipeline
#29830
failed with stage
in 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
68ef4ade
image
:
python:3.9.2-buster
stag
es
:
-
deploy_stage
-
deploy_prod
before_script
:
-
pip install twine
-
python setup.py sdist
deploy_staging
:
stage
:
deploy
variabl
es
:
TWINE_USERNAME
:
$STAGING_USERNAME
TWINE_PASSWORD
:
$STAGING_PASSWORD
script
:
-
twine upload --repository testpypi dist/* --verbose
except
:
-
tags
deploy_production
:
stage
:
deploy
_prod
stage
:
deploy
variables
:
TWINE_USERNAME
:
__token__
TWINE_PASSWORD
:
$PRODUCTION_PASSWORD
script
:
-
twine upload --repository-url https://upload.pypi.org/legacy/ dist/* --verbose
only
:
-
tags
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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