Skip to content

Commit cd72cc7

Browse files
lancondrejRomanHotsiy
authored andcommitted
fix: improve deploy-branch script
* Create swagger yaml file next to the json one also in not master branches. * Copy whole web directory instead of just index.html It can contains other important file, like swagger file or some assets.
1 parent a0f9f6f commit cd72cc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generators/app/templates/_scripts/deploy-branch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if (branch && branch !== 'gh-pages') {
1111
var branchPath = path.join('.tmp', 'preview', branch, '/');
1212
mkdir('-p', branchPath);
1313
exec('npm run swagger bundle -- -o ' + branchPath + 'swagger.json');
14-
cp('web/index.html', branchPath);
14+
exec('npm run swagger bundle -- --yaml -o ' + branchPath + 'swagger.yaml');
15+
cp('-R', 'web/*', branchPath);
1516
exec('deploy-to-gh-pages --update .tmp');
1617
}

0 commit comments

Comments
 (0)