Skip to content

Commit 308d3a9

Browse files
author
Kareem Zidane
committed
deploys on tags only and creates github releases
1 parent 4c53f15 commit 308d3a9

File tree

2 files changed

+43
-6
lines changed

2 files changed

+43
-6
lines changed

.travis.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,36 @@ script: make build
99
before_deploy: pip install twine
1010

1111
deploy:
12-
provider: script
1312

14-
# upload to PyPI
15-
script: twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
13+
# create github release
14+
- provider: releases
1615

17-
# avoid stashing sdist
18-
skip_cleanup: true
16+
# GitHub access token
17+
api_key:
18+
secure: "Hv2ICkPkC7hiRw8GS9adkEcfoYGeVPbGHRNPQdGxLTeP1Mz9x/2ylUprrb2Ohq+pHGRa1W55nSJAZWHto4L/seWS17vN1JB1o71KYeD8h4Ywm/iJzYJFu4v8cmuT9qMPC89GtSGUkEZml+Vd6lb6d/eBr7HWoAMF7LCobzVvpJftgSBqkN1Z0aaunGNRtPVaqf0D4iQMSU1e0X9HFyIsxjS68sNqVcU/eSqbkHQ32COliOdEZXDqNmoJjIq4NYVH7DCS4kSpfxSd3BkJPn1UH4891MntflMllH7khmSA0lqSuunp+olfzhzchYb0/e0LavqYyFU/cRemyt8RBuE0GD3J3TMudVav/5HLKt6/exZwqfv7bHyorDXkkKGJqYNPUCOD2K4RS4ExpUU5c5en5inJZdgKYVI9gZS15oXmKV3H/8JkJPgx0xRP1Rx8niQKezKdFb0dZxArbMBUuAnolgyoq2EgnsNYhboRWXoJP36FCWFn8U8UNUfmgOkkMcP59mZ6svznxWPIyCMhfGgShY03GTvPp94P6c6OZJpjyjmWyPsvGZJrvnRlJ8VxBaUBcfuQl9rtBorwJ3VI1VWguyBaSINM6OWPtEJ0J2oVM/8Dvjuw2qPNkCdUhflc7wV/AUYB9/6rfpjY+GwTEKtZBBw4epbZX/B0L+vdRONZJ0Q="
19+
20+
# enable wildcards in filenames
21+
file_glob: true
22+
23+
# upload sdist
24+
file: dist/*
25+
26+
# avoid stashing sdist
27+
skip_cleanup: true
28+
29+
# create releases on tags only
30+
on:
31+
tags: true
32+
33+
# deploy to PyPI
34+
- provider: script
35+
36+
# upload sdist to PyPI
37+
script: twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
38+
39+
# avoid stashing sdist
40+
skip_cleanup: true
41+
42+
# deploy on tags only
43+
on:
44+
tags: true

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,15 @@ clean:
88

99
.PHONY: install
1010
install: build
11-
pip install dist/cs50*.tar.gz
11+
pip install dist/*.tar.gz
12+
13+
.PHONY: push
14+
push:
15+
git push origin "v$$(python setup.py --version)"
16+
17+
.PHONY: release
18+
release: tag push
19+
20+
.PHONY: tag
21+
tag:
22+
git tag "v$$(python setup.py --version)"

0 commit comments

Comments
 (0)