Skip to content

Commit

Permalink
adjust update_index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenkov committed Aug 9, 2024
1 parent 54dfec9 commit bff9abc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/update_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ def main():
for page in paginator.paginate(Bucket=bucket, Delimiter='/', Prefix=prefix):
for content in page.get('Contents', []):
key = content['Key']
print(f"<li><a href='{key}'>{key}</a></li>")
#
# NB. use double quotes in href because that's that
# wheelhouse_uploader expects.
#
# https://github.com/ogrisel/wheelhouse-uploader/blob/eb32a7bb410769bb4212a9aa7fb3bfa3cef1aaec/wheelhouse_uploader/fetch.py#L15
#
print(f"""<li><a href="{key}">{key}</a></li>""")
print("</ul></body></html>")


Expand Down

0 comments on commit bff9abc

Please sign in to comment.