package/deploy: attempt to navigate travis-ci dot org

This commit is contained in:
Ernest W Durbin III 2019-02-23 13:14:03 -05:00
parent b91c65043d
commit 74c07a51e9
No known key found for this signature in database
GPG Key ID: 4F19322DF3FFA2D5
3 changed files with 9 additions and 8 deletions

View File

@ -10,6 +10,8 @@ before_install:
script: script:
- make -j - make -j
after_success: deploy:
- test $TRAVIS_BRANCH = "master" && provider: script
make upload script: deploy.bash
on:
branch: master

View File

@ -49,8 +49,3 @@ package: all rss
cp *.png build/peps/ cp *.png build/peps/
cp *.rss build/peps/ cp *.rss build/peps/
tar -C build -czf build/peps.tar.gz 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
deploy.bash Normal file
View File

@ -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