Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bumps version and deploys on tags only #44

Merged
merged 3 commits into from
Apr 2, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
creates github releases
Kareem Zidane committed Apr 1, 2017
commit 5dcd18f838678573e5aff04b772600e20ac5c615
32 changes: 27 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -9,14 +9,36 @@ script: make build
before_deploy: pip install twine

deploy:
provider: script

# deploy on tags only
on:
tags: true
# create github release
- provider: releases

# GitHub access token
api_key:
secure: "Hv2ICkPkC7hiRw8GS9adkEcfoYGeVPbGHRNPQdGxLTeP1Mz9x/2ylUprrb2Ohq+pHGRa1W55nSJAZWHto4L/seWS17vN1JB1o71KYeD8h4Ywm/iJzYJFu4v8cmuT9qMPC89GtSGUkEZml+Vd6lb6d/eBr7HWoAMF7LCobzVvpJftgSBqkN1Z0aaunGNRtPVaqf0D4iQMSU1e0X9HFyIsxjS68sNqVcU/eSqbkHQ32COliOdEZXDqNmoJjIq4NYVH7DCS4kSpfxSd3BkJPn1UH4891MntflMllH7khmSA0lqSuunp+olfzhzchYb0/e0LavqYyFU/cRemyt8RBuE0GD3J3TMudVav/5HLKt6/exZwqfv7bHyorDXkkKGJqYNPUCOD2K4RS4ExpUU5c5en5inJZdgKYVI9gZS15oXmKV3H/8JkJPgx0xRP1Rx8niQKezKdFb0dZxArbMBUuAnolgyoq2EgnsNYhboRWXoJP36FCWFn8U8UNUfmgOkkMcP59mZ6svznxWPIyCMhfGgShY03GTvPp94P6c6OZJpjyjmWyPsvGZJrvnRlJ8VxBaUBcfuQl9rtBorwJ3VI1VWguyBaSINM6OWPtEJ0J2oVM/8Dvjuw2qPNkCdUhflc7wV/AUYB9/6rfpjY+GwTEKtZBBw4epbZX/B0L+vdRONZJ0Q="

# enable wildcards in filenames
file_glob: true

# upload sdist
file: dist/*

# avoid stashing sdist
skip_cleanup: true

# upload to PyPI
# create releases on tags only
on:
tags: true

# deploy to PyPI
- provider: script

# upload sdist to PyPI
script: twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*

# avoid stashing sdist
skip_cleanup: true

# deploy on tags only
on:
tags: true
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -8,4 +8,15 @@ clean:

.PHONY: install
install: build
pip install dist/submit50*.tar.gz
pip3 install dist/*.tar.gz

.PHONY: push
push:
git push origin "v$$(python3 setup.py --version)"

.PHONY: release
release: tag push

.PHONY: tag
tag:
git tag "v$$(python3 setup.py --version)"