diff --git a/lib/main.js b/lib/main.js index 25eb905..fa40820 100644 --- a/lib/main.js +++ b/lib/main.js @@ -69,8 +69,8 @@ function run() { core.info(`🏃 Copying ${path.join(currentdir, build_dir)} contents to ${tmpdir}`); fs_extra_1.copySync(path.join(currentdir, build_dir), tmpdir); if (fqdn) { - core.info(`✍️ Writing ${fqdn} domain name to ${path.join(build_dir, 'CNAME')}`); - fs.writeFileSync(path.join(build_dir, 'CNAME'), fqdn.trim()); + core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`); + fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim()); } core.info(`🔨 Configuring git committer to be ${committer_name} <${committer_email}>`); yield exec.exec('git', ['config', 'user.name', committer_name]); diff --git a/src/main.ts b/src/main.ts index f065b0a..52ca7fb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -55,8 +55,8 @@ async function run() { copySync(path.join(currentdir, build_dir), tmpdir); if (fqdn) { - core.info(`✍️ Writing ${fqdn} domain name to ${path.join(build_dir, 'CNAME')}`); - fs.writeFileSync(path.join(build_dir, 'CNAME'), fqdn.trim()); + core.info(`✍️ Writing ${fqdn} domain name to ${path.join(tmpdir, 'CNAME')}`); + fs.writeFileSync(path.join(tmpdir, 'CNAME'), fqdn.trim()); } core.info(`🔨 Configuring git committer to be ${committer_name} <${committer_email}>`);