Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 49fc1bd

Browse files
committed
fix aws deploy script
1 parent 79552fa commit 49fc1bd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

scripts/deploy.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ const gulp = require('gulp'),
1515
s3Path = '/libs/altspace.js',
1616
targetRemote = 'origin';
1717

18-
// require other file
19-
const build = require('./build');
20-
21-
var version;
22-
23-
// ### Publish tasks ###
18+
const version = require('../package.json').version;
2419

2520
gulp.task('release', function (done) {
2621
release({ type: 'oauth', token: process.env.githubtoken }, done);
@@ -33,7 +28,7 @@ gulp.task('publish-aws', function () {
3328
secretAccessKey: process.env.awssecretkey,
3429
params: { Bucket: 'sdk.altvr.com' }
3530
});
36-
return gulp.src('dist/**')
31+
return gulp.src('../dist/**')
3732
.pipe(rename(function (distPath) {
3833
if (distPath.dirname === '.') { distPath.dirname = ''; }
3934
distPath.dirname = s3Path + '/' + version + '/' + distPath.dirname;

0 commit comments

Comments
 (0)