Skip to content

Commit

Permalink
Updating CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryHeres committed Oct 12, 2024
1 parent 7a60905 commit 6ee6229
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/create-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `v${version}`,
name: version,
body: body,
name: `v${version}`,
body: `${body}`,
draft: false,
prerelease: true
});
Expand All @@ -68,19 +68,12 @@ jobs:
const version = process.env.version;
const release_id = process.env.release_id;
console.log(release_id);
const fileName = `SlicerBoneMorphing-${version}.zip`;
const assetPath = path.join(process.cwd(), fileName);
const fileSize = fs.statSync(assetPath).size;
const fileData = fs.readFileSync(assetPath);
await github.rest.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: `${release_id}`,
name: fileName,
data: fileData,
data: `@SlicerBoneMorphing-${version}.zip`,
headers: {
'content-type': 'application/zip',
'content-length': fileSize
Expand Down

0 comments on commit 6ee6229

Please sign in to comment.