{"action":"closed","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5373","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5373/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5373/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5373/events","html_url":"https://github.com/travis-ci/travis-ci/issues/5373","id":124271736,"number":5373,"title":"Allow file renaming with s3 deploy","user":{"login":"sirugh","id":1278869,"avatar_url":"https://avatars.githubusercontent.com/u/1278869?v=3","gravatar_id":"","url":"https://api.github.com/users/sirugh","html_url":"https://github.com/sirugh","followers_url":"https://api.github.com/users/sirugh/followers","following_url":"https://api.github.com/users/sirugh/following{/other_user}","gists_url":"https://api.github.com/users/sirugh/gists{/gist_id}","starred_url":"https://api.github.com/users/sirugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirugh/subscriptions","organizations_url":"https://api.github.com/users/sirugh/orgs","repos_url":"https://api.github.com/users/sirugh/repos","events_url":"https://api.github.com/users/sirugh/events{/privacy}","received_events_url":"https://api.github.com/users/sirugh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-29T21:37:54Z","updated_at":"2015-12-30T03:09:28Z","closed_at":"2015-12-30T03:09:28Z","body":"travis-ci provides the ability to [upload to a directory](https://docs.travis-ci.com/user/deployment/s3#Deploy-to-a-Specific-S3-Folder).\r\n\r\nI think it would be great if we could upload to a specific file as well. I have a deploy job that only needs to deploy a file, but it needs to rename the file at the same time. In the [AWS CLI docs](http://docs.aws.amazon.com/cli/latest/reference/emr/put.html?highlight=put) you can PUT a local file to a filename that is different than the source.\r\n\r\nMy use case is a gzipped javascript file that I want to upload. Maybe that looks like this?\r\n```yml\r\ndeploy:\r\n  provider: s3\r\n  ...\r\n  local_file: \"build/my_gzipped_file.gz\"\r\n  upload_file: \"my_gzipped_file.js\"\r\n  detect_encoding: true\r\n```\r\n\r\nCurrently I have to gzip the file to a separate subdirectory at `build/gz/my_gzipped_file.js` and upload that local_dir.\r\n\r\nThanks!"}}