Skip to content

Commit

Permalink
package/deploy: attempt to navigate travis-ci dot org
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Feb 23, 2019
1 parent b91c650 commit 74c07a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ before_install:
script:
- make -j

after_success:
- test $TRAVIS_BRANCH = "master" &&
make upload
deploy:
provider: script
script: deploy.bash
on:
branch: master
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,3 @@ package: all rss
cp *.png build/peps/
cp *.rss build/peps/
tar -C build -czf build/peps.tar.gz peps

upload: venv package
./venv/bin/python -m pip install awscli
./venv/bin/aws s3 cp --acl public-read build/peps.tar.gz s3://pythondotorg-assets-staging/peps.tar.gz
./venv/bin/aws s3 cp --acl public-read build/peps.tar.gz s3://pythondotorg-assets/peps.tar.gz
4 changes: 4 additions & 0 deletions deploy.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
make package
pip install awscli
aws s3 cp --acl public-read build/peps.tar.gz s3://pythondotorg-assets-staging/peps.tar.gz
aws s3 cp --acl public-read build/peps.tar.gz s3://pythondotorg-assets/peps.tar.gz

0 comments on commit 74c07a5

Please sign in to comment.