Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
dstelljes committed Nov 3, 2023
1 parent 00f19b3 commit 28c5582
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ jobs:
const releaseDirectory = './releases';
await fs.mkdir(releaseDirectory, { recursive: true });
await Promise.all(context.release.assets.map(async asset => {
const release = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: process.env.GITHUB_REF.replace(/^(?:.+\/)?([^\/]+)$/, '$1')
});
await Promise.all(release.assets.map(async asset => {
const contents = await github.rest.repos.getReleaseAsset({
asset_id: asset.id,
headers: {
Expand Down

0 comments on commit 28c5582

Please sign in to comment.