Skip to content

Commit

Permalink
unzip all the zips
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-morrison44 committed Mar 18, 2024
1 parent 0a91930 commit 0a97e3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish_to_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
const response = await github.request(url)
const packs = JSON.parse(response.data)
await io.mkdirP("./image_packs");
await fs.writeFile("./image_packs/index.json", response.data);
for (const pack of packs){
const latestReleaseResponse = await github.request(
`https://api.github.com/repos/${pack.owner}/${pack.repository}/releases/latest`
Expand Down Expand Up @@ -76,6 +79,8 @@ jobs:
await fs.writeFile(`${folderPath}/${pack.variant || "pack"}.zip`, zipBuffer);
}
- run: find . -depth -name '*.zip' -exec /usr/bin/unzip -n {} \; -delete

- uses: actions/upload-artifact@v4
with:
name: image-packs
Expand Down

0 comments on commit 0a97e3b

Please sign in to comment.