Skip to content

Commit

Permalink
fix: read the binary content of the jar (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
bathienle authored Aug 18, 2023
1 parent 1e09203 commit 81dbc20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,16 @@ jobs:
release_id: ${{ needs.create-release.outputs.release_id }}
with:
script: |
const fs = require('fs');
try {
github.rest.repos.uploadReleaseAsset({
data: process.env.name,
data: fs.readFileSync(process.env.name),
name: process.env.name,
owner: context.repo.owner,
release_id: process.env.release_id,
repo: context.repo.repo,
});
} catch (error) {
core.setFailed(error.message);
}
}

0 comments on commit 81dbc20

Please sign in to comment.