Skip to content

Commit

Permalink
Update deploy-docs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzaibkhalid committed Mar 28, 2023
1 parent 9bc0a02 commit 372caca
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions scripts/deploy-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ const deployToS3Deprecated = () => {
}


deployToS3('latest')
.then(() => deployToS3(`v${version}`))
// Continue to deploy to the thorium bucket because http://tds.telus.com points there
// TODO: Rip this out when the domain name is pointed at the new bucket: TDS-286
.then(() => deployToS3Deprecated())
if (env === 'production') {
deployToS3('latest')
.then(() => deployToS3(`v${version}`))
// Continue to deploy to the thorium bucket because http://tds.telus.com points there
// TODO: Rip this out when the domain name is pointed at the new bucket: TDS-286
.then(() => deployToS3Deprecated())
} else {
deployToS3('staging')
}

0 comments on commit 372caca

Please sign in to comment.