fix: Add package-config & asset filtering to include in gh-pages#34
Merged
Conversation
7831386 to
8812b4e
Compare
Introduce packages.config.json and package-config.js to control which release assets are mirrored (wildcard patterns, per-repo include lists). Update sync-assets.js to honor the config: only configured assets are downloaded, stored assets excluded by the config are cleaned up, hash sidecar handling improved, and new helpers added (cleanup, hash/file helpers, download limit checks). Enhance generate-packages.js to normalize GitHub metadata, build packages.json from metadata (with stats), and export helper functions. Remove the standalone sync-release-assets workflow and consolidate asset sync and pages publishing in update-pages.yml (adds scheduled runs, artifact preparation, and updated checkout/worktree logic). Update README and the gh-pages client to reference the published packages.json path. Add example packages.config.json.
8812b4e to
801b1d3
Compare
Replace the packagesPaths array/fallback logic with a single packagesPath and inline fetch. Removed the fetchPackagesJson method and updated loadRepositoryData to fetch this.packagesPath directly, validating response.ok and parsing JSON. This simplifies the code by removing the raw GitHub fallback and centralizing the packages.json request.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
We need direct download links for release assets which doesn't work if the assets are not in gh-pages.
Additionally, gh-pages does not allow distribution over 1GB so we will selectively include what we need. This limitation also destroys the purpose of keeping all the assets in the dist branch, so this is also now reduced to include selective assets.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage