diff --git a/dist/index.js b/dist/index.js index 1152524..11d16a2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1000,17 +1000,16 @@ const exec = __webpack_require__(986); let deploy = function (folder, bucket, distId) { return new Promise((resolve, reject) => { try { - const args = [ - `./${folder}/**`, - `--bucket ${bucket}`, - `--cwd './${folder}'`, - `--distId ${distId}`, - `--etag`, - `--gzip xml,html,htm,js,css,ttf,otf,svg,txt`, - `--invalidate '/'`, - `--noCache`, - ]; - exec.exec("npx s3-deploy@1.4.0", args).then(resolve).catch(reject); + const command = `npx s3-deploy@1.4.0 './${folder}/**' \ + --bucket ${bucket} \ + --cwd './${folder}' \ + --distId ${distId} \ + --etag \ + --gzip xml,html,htm,js,css,ttf,otf,svg,txt \ + --invalidate / \ + --noCache `; + + exec.exec(command).then(resolve).catch(reject); } catch (e) { reject(e); } diff --git a/package.json b/package.json index 78a73f2..95d5ce4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "javascript-action", - "version": "1.1.0", + "version": "1.1.1", "description": "JavaScript Action Template", "main": "index.js", "scripts": {