Skip to content

Commit

Permalink
ci(deploy-docs): Turn off deploy to staging to old bucket.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoglesby08 committed Aug 15, 2017
1 parent c3f3399 commit a28659c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/deploy-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
// s3-website: https://github.com/klaemo/s3-website


if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) {
console.error("'AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY' must be available in the environment.");
process.exit(1);
}
// if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) {
// console.error("'AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY' must be available in the environment.");
// process.exit(1);
// }


const resolvePath = require('path').resolve;
Expand All @@ -38,6 +38,9 @@ const s3 = new AWS.S3({ region: config.region });
const deployToS3 = (prefix) => {
const deployConfig = Object.assign(config, { prefix });

console.log('Deploying to s3...');
console.log(deployConfig);

deploy(s3, deployConfig, (err, website) => {
if (err) {
throw err;
Expand Down Expand Up @@ -75,6 +78,4 @@ if (env === 'production') {
}
else {
deployToS3('staging');

deployToS3_deprecated();
}

0 comments on commit a28659c

Please sign in to comment.