Skip to content

Commit

Permalink
Added uploading to gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gbdlin committed May 2, 2019
1 parent 932d499 commit fee4267
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
stages:
- test
- build
# - deploy
- upload

image: "registry.gitlab.com/gbd.lin/django-admin-toolbox-ci/ansible:latest"

Expand All @@ -17,7 +17,7 @@ chceck_flake8:
- branches
- tags

build_sdist:
build:sdist:
stage: build
tags:
- python3
Expand All @@ -30,10 +30,11 @@ build_sdist:
except:
- branches
artifacts:
name: '$CI_COMMIT_REF_NAME-sdist'
paths:
- dist/

build_wheel:
build:wheel:
stage: build
tags:
- python3
Expand All @@ -46,5 +47,17 @@ build_wheel:
except:
- branches
artifacts:
name: '$CI_COMMIT_REF_NAME-wheel'
paths:
- dist/

upload:pypi:
stage: upload
tags:
- python3
- setuptools
script:
- "twine upload dist/* -u $PYPI_USER -p $PYPI_PASSWORD"
dependencies:
- build:sdist
- build:wheel

0 comments on commit fee4267

Please sign in to comment.