{"repo":"pavi2410/html-preview-action","free":true,"listed":false,"github":"https://github.com/pavi2410/html-preview-action","clone":"git clone https://github.com/pavi2410/html-preview-action.git","description":"GitHub action to preview HTML page","language":"TypeScript","stars":46,"topics":["html","preview","github-actions","html-preview"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"HTML Preview Action Upload preview artifacts for an HTML entrypoint and its related files from a GitHub Actions workflow. v5 is a breaking, artifact-only update focused on the most common use case for this action: previewing HTML generated during CI. If you need the old checked-in repo/blob preview behavior, jump to Migrating from repo-mode usage. This action is designed for outputs like: - generated docs sites - test reports - coverage reports - static sites emitted during CI - HTML dashboards with local CSS, JS, images, or linked pages Run it once per entry HTML file, then use the returned outputs in your own summary or PR comment step if you want. Usage The primary output is steps.html preview.outputs.url , which points to the uploaded artifact for this preview run. How this action works When the action runs, it does the following: 1. Resolves html file inside site root 2. Recursively discovers local linked HTML pages and local assets under that root 3. Ignores references that are: - remote ( http: , https: ) - non-previewable ( data: , mailto: , javascript: ) - outside site root - missing on disk 4. Chooses an upload strategy: - raw when only one file is included - archive when multiple files are needed, or when you explicitly request upload: archive 5. Uploads the preview payload as a GitHub Actions artifact 6. Exposes the artifact URL plus summary metadata via outputs This behavior is intentional: multi-file previews need stable in-artifact paths so linked CSS, images, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/pavi2410","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pavi2410/html-preview-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}