Skip to content

Fixed Deployment Preview Workflow#122

Merged
saurabhraghuvanshii merged 3 commits intomeshery-extensions:masterfrom
SplinterSword:deployPreview
Jan 9, 2026
Merged

Fixed Deployment Preview Workflow#122
saurabhraghuvanshii merged 3 commits intomeshery-extensions:masterfrom
SplinterSword:deployPreview

Conversation

@SplinterSword
Copy link
Copy Markdown
Contributor

@SplinterSword SplinterSword commented Dec 30, 2025

Notes for Reviewers

  • This PR fixes #

Problem

Preview deployments were intermittently failing in CI with errors such as artifact not found or resulting in broken or empty preview sites.


Root Cause Analysis

After tracing the CI pipeline end-to-end, the issue was identified as incorrect artifact packaging in the build workflow.

What was happening

  1. The build step generates the static site output in site/public/.

  2. The packaging script (script.sh) was creating an empty public/ directory and zipping that directory instead of the actual build output.


Solution

This PR fixes the issue by packaging only the actual build output and validating it before uploading the artifact.

Key changes

  1. Corrected artifact source
    The packaging script now zips the contents of site/public/ instead of an empty public/ directory.

Verification

The fix was verified both locally and in CI:

  • Ran make build locally and confirmed output in site/public/
  • Executed the updated script.sh and inspected the generated zip to confirm it contained a flat site structure
  • Unzipped the artifact into docs/_site and simulated the Netlify preview locally using:
python3 -m http.server --directory docs/_site

Signed commits

  • Yes, I signed my commits.

@github-actions github-actions bot added area/ci Continuous integration | Build and release component/extensions component/ui Meshery UI related labels Dec 30, 2025
@CodexRaunak
Copy link
Copy Markdown

@SplinterSword Thank you for your contribution! Let's discuss this during the website call on Monday at 6:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂

@saurabhraghuvanshii
Copy link
Copy Markdown
Member

@SplinterSword I’m merging this to verify if it succeeds.

@saurabhraghuvanshii saurabhraghuvanshii merged commit 432dd2b into meshery-extensions:master Jan 9, 2026
4 checks passed
@saurabhraghuvanshii
Copy link
Copy Markdown
Member

@SplinterSword
Copy link
Copy Markdown
Contributor Author

Okay i will look into it as soon as possible, right now i am out of station, will be able to work on it after monday if that is okay.

@SplinterSword SplinterSword deleted the deployPreview branch January 14, 2026 06:05
@SplinterSword
Copy link
Copy Markdown
Contributor Author

@saurabhraghuvanshii , can you take a look into this one and see if it works

#124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci Continuous integration | Build and release component/extensions component/ui Meshery UI related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants