Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit 1635805

Browse files
committed
Update GitHub deploy
1 parent fb34a20 commit 1635805

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ matrix:
1717
- python: pypy3
1818

1919
install:
20-
- sh ci/install.sh
20+
- bash ci/install.sh
2121

2222
script:
23-
- sh ci/script.sh
23+
- bash ci/script.sh
2424

2525
after_success:
26-
- sh ci/after_success.sh
26+
- bash ci/after_success.sh
27+
28+
before_deploy:
29+
- bash ci/before_deploy.sh
2730

2831
deploy:
2932
- provider: releases
33+
overwrite: true
3034
# TODO Regenerate this api_key for your project, this one won't work for you. Here's how:
3135
# - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
3236
# `public_repo` scope enabled
@@ -37,8 +41,7 @@ deploy:
3741
secure: 28IOmyNkPlSxBN+jBkpWGlrAbB0/2xKkI0RV8K8zwJ2DGyLGYYucpc37Xvu1OFYdfK2yv5PZ1uUuiqXXHHh4/2c8KTA6DPj8WlTTrxWD7CVN42BLUjATqs89vPQJwZPmbEzRykAPReneBvVuXsQonyFY/KToK5CsQKUnr/lp1i1y3rtmAMc3kDG7U+qf1GYu8pNReVmgaTtGJYzQdg9ZLAu0K8UJ9RLrFvlzMKNgVHh1bHugIamnMjR6q0jjJ2uBYmLbK2nu1jMdLOyFb1u4oPRmu4Wv212lxOSIomlKXqL3FJABKJ9E5L4lbh9IVh3TjlR46i3GRKvcmrnsJ8sv9OFYe0YotCnFu47GGrRTQFite7JRVSWt7Xb8Lk1I9i8NIdbYwwU6GXDw5O9qTQlwX0wZCtgj+A/ag6bxNFedKU3e4dgAJ2JiiSN2EzNhOulp8TsTc6pwK/1bS/B2CZ8u0raFdy7LOoBxDPDbzhZn8QptL18TzlU3y/BnPQkjmOKBYwT8ZNAKFcV5lGKx+bod07gkKzLmYWzfETdjq44hE/kKNarL0uS8Cx3WUE4zavNrFGIWxTZOdLDX7IhQFi8LG38np3DbpWWi9jS7F+P/pn9bZErCbO8LDXM42VB15Tx+P0cHTMVyTbZfzNfkOZNWizkJ8Aeq1VCgXP7OEAla/so=
3842
file_glob: true
3943
file:
40-
- dist/*.whl
41-
- dist/*${TRAVIS_TAG}.tar.gz
44+
- dist/*
4245
# don't delete the artifacts from previous phases
4346
skip_cleanup: true
4447
# deploy when a new tag is pushed

build_doc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def get_repo_url():
7575

7676
def commit_to_github():
7777
run_cmd('pip install -U ghp-import')
78+
run_cmd('git config --global user.name "Travis"')
79+
run_cmd('git config --global user.email [email protected]')
7880
msg = get_commit_message().decode()
7981
cmd = 'ghp-import -n -r origin -b gh-pages -m "{}" {}'.format(msg,
8082
HTML_DIR)

ci/before_deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
python setup.py sdist
2+
python setup.py bdist_wheel

0 commit comments

Comments
 (0)