Skip to content

Commit 161122b

Browse files
committed
SDK-2988: Upload to official pypi server
1 parent cec3669 commit 161122b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.gitlab-ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ test_package:
1414

1515
deploy_package:
1616
stage: deploy
17+
variables:
18+
TWINE_USERNAME: $PYPI_USERNAME
19+
TWINE_PASSWORD: $PYPI_PASSWORD
1720
script:
21+
- pip install twine
22+
- rm -rf dist
1823
- export VERSION=$(python setup.py --version)
19-
- python setup.py sdist --formats=gztar upload -r gog-pypi
24+
- python setup.py sdist --formats=gztar bdist_wheel
25+
- twine upload dist/*
2026
- curl -X POST --silent --show-error --fail
2127
"https://gitlab.gog.com/api/v4/projects/${CI_PROJECT_ID}/repository/tags?tag_name=${VERSION}&ref=${CI_COMMIT_REF_NAME}&private_token=${PACKAGE_DEPLOYER_API_TOKEN}"
2228
when: manual

0 commit comments

Comments
 (0)