galaxyproject / ephemeris

Library for managing Galaxy plugins - tools, index data, and workflows.
https://ephemeris.readthedocs.org/
Other
28 stars 38 forks source link

Release to PyPI on tag #142

Closed mvdbeek closed 4 years ago

nsoranzo commented 4 years ago

I'd use a deploy stage, so it runs after all test builds are successful (and only once). Something like:

matrix:
  ...
  include:
    - stage: deploy
      python: '3.5'
      if: tag IS present
      install:
        - python -m pip install twine
      script:
        - python setup.py sdist bdist_wheel
        - twine check dist/*
        - twine upload --skip-existing dist/*