Skip to content

Commit

Permalink
travis: delete build artifacts before PyPI deploy
Browse files Browse the repository at this point in the history
GraemeWatt committed Sep 24, 2020

Verified

This commit was signed with the committer’s verified signature.
jshearer Joseph Shearer
1 parent 0518e18 commit 6f4b4ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ after_success:

before_deploy:
- export CURRENT_PATH=`pwd`
- docker run -v $CURRENT_PATH:$CURRENT_PATH $DOCKER_IMAGE /bin/bash -c "cd $CURRENT_PATH && rm -rf build hepdata_converter.egg-info"
- docker run -v $CURRENT_PATH:$CURRENT_PATH $DOCKER_IMAGE /bin/bash -c "cd $CURRENT_PATH && rm -rf build dist hepdata_converter.egg-info hepdata_converter/__pycache__ hepdata_converter/*/__pycache__"

deploy:
provider: pypi
@@ -38,3 +38,4 @@ deploy:
on:
tags: true
repo: HEPData/hepdata-converter
skip_existing: true

0 comments on commit 6f4b4ca

Please sign in to comment.