Skip to content

Commit

Permalink
Build releases directory listing using GH api. fix#102 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
maggick authored Jan 27, 2023
1 parent bcd5f1e commit 1048f90
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions releases/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<html>
<body>
<script>
(async () => {
const response = await fetch('https://api.github.com/repos/fabi1cazenave/qwerty-lafayette/contents/releases');
const data = await response.json();
let htmlString = '<ul>';

for (let file of data) {
htmlString += `<li><a href="${file.path}">${file.name}</a></li>`;
}

htmlString += '</ul>';
document.getElementsByTagName('body')[0].innerHTML = htmlString;
})()
</script>
<body>
</html>

0 comments on commit 1048f90

Please sign in to comment.