Skip to content

Commit

Permalink
fix: copyAssets() for destination_dir (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Linde committed Jul 25, 2020
1 parent 0b4686e commit 674c231
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/git-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export async function copyAssets(publishDir: string, destDir: string): Promise<v
}
const filePublishPath = path.join(publishDir, file);
const fileDestPath = path.join(destDir, file);
const destPath = path.dirname(fileDestPath);
if (fs.existsSync(destPath) === false) {
await createDir(destPath);
}
await io.cp(filePublishPath, fileDestPath, copyOpts);
core.info(`[INFO] copy ${file}`);
}
Expand Down

0 comments on commit 674c231

Please sign in to comment.