Skip to content

Commit

Permalink
build.yaml: Fix extraction of artifacts when preparing for release (#…
Browse files Browse the repository at this point in the history
…3146)

Co-authored-by: Thom Shutt <thomshutt@users.noreply.github.com>
  • Loading branch information
hjpotter92 and thomshutt authored Aug 20, 2024
1 parent 45591da commit 8b4050d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/discord-embed-webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def populate_embeds(embed: DiscordEmbed, ref_name: str, checksums: list[str]):
version=ref_name,
filename=filename,
)
title = filename.lstrip("livepeer-").split(".")[0]
title = filename.removeprefix("livepeer-").split(".")[0]
print(f"Adding embed field name={title} value={download_url}")
embed.add_embed_field(name=title, value=download_url, inline=False)

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
name_is_regexp: true
path: releases/

- name: Flatten all downloaded artifacts to a single directory
shell: bash
run: |
find . -type f -exec mv '{}' ./ \;
find . -type d -empty -delete
- uses: actions-ecosystem/action-regex-match@v2
id: match-tag
with:
Expand Down

0 comments on commit 8b4050d

Please sign in to comment.