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 319d198 commit b62b319
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/create-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,19 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const version = process.env.VERSION;
const body = $(cat CHANGELOG.md);
const fs = require('fs');
const body = fs.readFileSync(changelogPath, 'utf8');
const response = await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `v${version}`,
name: version,
body: `${body}`,
body: body,
draft: false,
prerelease: true
});
return response.data.release_id
return response.data.release_id;
- name: Upload ZIP to the release
uses: actions/github-script@v6
Expand Down

0 comments on commit b62b319

Please sign in to comment.