Skip to content

Commit

Permalink
chore: Fix some more bugs in the create-release script
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Mar 1, 2021
1 parent ad6c3d7 commit 4dae4cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/create-release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ async function main() {
sha,
} = github.context;
const prerelease = core.getInput('prerelease').toLowerCase() === 'true';
const version = core.getInput('version').toLowerCase();

const release = await octokit.repos.createRelease({
owner,
repo,
tag_name: process.env.GITHUB_REF,
name: `Release ${process.env.GITHUB_REF} (test)`,
tag_name: `v${version}`,
name: `Release v${version} (test)`,
draft: true,
prerelease,
target_commitish: sha,
});

const root = path.join(__dirname, '..', '..', '..');
const version = core.getInput('version').toLowerCase();

// Upload Firefox asset
const firefoxPackageName = core.getInput('firefox_package_name');
Expand Down Expand Up @@ -80,7 +80,7 @@ async function main() {
repo,
release_id: release.data.id,
name: file,
data: fs.readFileSync(file),
data: fs.readFileSync(path.join(root, 'dist-firefox', file)),
});
}

Expand Down

0 comments on commit 4dae4cb

Please sign in to comment.