Skip to content

Commit

Permalink
fixed Deploy.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
andyli committed Mar 16, 2017
1 parent 0408bd1 commit b51297f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Deploy.hx
Expand Up @@ -39,15 +39,15 @@ class Deploy {
// Set up redirections of the download files to GitHub releases.
for (version in downloadsData.versions) {
for (download in
(version.api ? [{ filename: 'api-${version.version}.zip' }] : [])
(version.api != null ? [version.api] : [])
.concat(version.downloads.osx)
.concat(version.downloads.windows)
.concat(version.downloads.linux)
){
aws([
"s3api", "put-object",
"--acl", "public-read",
"--website-redirect-location", 'https://github.com/HaxeFoundation/haxe/releases/download/${version.tag}/${download.filename}',
"--website-redirect-location", download.url,
"--bucket", S3_BUCKET,
"--key", '${BRANCH}/website-content/downloads/${version.version}/downloads/${download.filename}'
]);
Expand All @@ -62,7 +62,7 @@ class Deploy {
aws([
"s3api", "put-object",
"--acl", "public-read",
"--website-redirect-location", 'https://github.com/HaxeFoundation/haxe/releases/download/${version.tag}/${download.filename}',
"--website-redirect-location", download.url,
"--bucket", S3_BUCKET,
"--key", '${BRANCH}/website-content/downloads/latest/downloads/${download.filename.replace(version.version, "latest")}'
]);
Expand Down

0 comments on commit b51297f

Please sign in to comment.