Skip to content

Commit

Permalink
patch: dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyS0e committed Jun 13, 2024
1 parent ae336bd commit 331a3e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,20 @@ jobs:
with:
script: |
const fs = require('fs');
// Get release for this tag
const release = await github.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
process.env.RELEASE_TAG
});
print(release)
// Upload the release asset
await github.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.data.id,
name: "kong-plugin-myplugin-" + process.env.RELEASE_VER + "-1.rockspec",
name: "kong-plugin-myplugin-1-1.rockspec",
data: await fs.readFileSync("newfile.txt")
});

0 comments on commit 331a3e3

Please sign in to comment.