Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 22, 2023
1 parent 9388a94 commit 968f4d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
// read all files from the binariees dir
const files = fs.readdirSync("./binaries");
const { data } = await octokit.rest.repos.listReleases({
const { data } = await github.rest.repos.listReleases({
owner: context.repo.owner,
repo: context.repo.repo,
});
Expand All @@ -161,7 +161,7 @@ jobs:
}
console.log("deleting asset", asset.name, asset.id);
await octokit.rest.repos.deleteReleaseAsset({
await github.rest.repos.deleteReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: releaseId,
Expand All @@ -173,7 +173,7 @@ jobs:
const filePath = `./binaries/${file}`;
const fileData = fs.readFileSync(filePath);
const { data: uploadResponse } = await octokit.rest.repos.uploadReleaseAsset({
const { data: uploadResponse } = await github.rest.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: releaseId,
Expand Down

0 comments on commit 968f4d5

Please sign in to comment.