Skip to content

Commit 95d56a0

Browse files
committed
Upload to correct dir in the bucket
also use AWS v2 gem to upload
1 parent fd5065f commit 95d56a0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,27 @@ after_success:
4141
after_failure:
4242
- cat /tmp/python-build.*.log
4343

44+
before_deploy:
45+
- git clone https://github.com/travis-ci/dpl.git
46+
- git config user.email "[email protected]"
47+
- git config user.name "Your Name"
48+
- pushd dpl
49+
- unset CI
50+
- git remote add jw https://github.com/johanneswuerbach/dpl.git
51+
- git fetch jw
52+
- git merge --no-edit jw/s3-aws-sdk-v2 master
53+
- rvm 1.9.3 do gem build dpl.gemspec
54+
- mv dpl-*.gem ..
55+
- popd
56+
4457
deploy:
4558
provider: s3
59+
edge: local
4660
access_key_id: $ARTIFACTS_KEY
4761
secret_access_key: $ARTIFACTS_SECRET
4862
bucket: $ARTIFACTS_BUCKET
4963
local_dir: $HOME/archive/$(lsb_release -rs)
64+
upload_dir: $(lsb_release -rs)
5065
on:
5166
all_branches: true
5267
acl: public_read

0 commit comments

Comments
 (0)