Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenzatto committed Sep 11, 2021
1 parent 182c3d0 commit 1163117
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 170 deletions.
20 changes: 18 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,24 @@ pages:
refs:
- master

# Deploy from master to package registry
# If PYPI_USERNAME/PYPI_PASSWORD are not set, defaults to gitlab
# package registry, thus using the required variables to do so
# The package will be uploaded to PYPI_URL, which can be overrided
# not to upload to gitlab's PYPI
deploy:
stage: deploy_stage
script:
- pip install twine
- python setup.py sdist bdist_wheel
- export TWINE_USERNAME=${PYPI_USERNAME:=gitlab-ci-token}
- export TWINE_PASSWORD=${PYPI_PASSWORD:=$CI_JOB_TOKEN}
- export PYPI_REPO=${PYPI_URL:=https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi}
- python -m twine upload --verbose --repository-url ${PYPI_REPO} dist/*
only:
refs:
- master

tag_release_version:
stage: version_stage
script:
Expand All @@ -110,7 +128,6 @@ tag_release_version:
- ''
only:
refs:
- merge_requests
- master

release:
Expand All @@ -128,7 +145,6 @@ release:
- ''
only:
refs:
- merge_requests
- master

check_version:
Expand Down
Loading

0 comments on commit 1163117

Please sign in to comment.