Skip to content

SC-85409 | Build and deploy demonstration previews on pull requests #1352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 63 commits into from
Apr 29, 2025

Conversation

Alan-eMartin
Copy link
Collaborator

@Alan-eMartin Alan-eMartin commented Apr 14, 2025

Goal:

  • To create timely PR previews when contributing or updating demos.

Summary:

This pull request uses the new v2-build-demos and v2-deploy-demos workflows to:

  1. Build "modified" and new demos.
  2. Save them as artifacts.
  3. Deploy to the SWC database as previews.
  4. Post a comment with preview links.

Other changes:

  • Improved descriptions of inputs for workflows.

Testing:

I was required to fork the QML repo to push these workflows to master as workflow_run uses the workflow context from master.

Therefore, you can take a look at the following ran actions:
https://github.com/Alan-eMartin/qml/actions

Screenshot 2025-04-23 at 2 55 06 PM

@Alan-eMartin Alan-eMartin changed the base branch from dev to master April 14, 2025 21:27
@Alan-eMartin Alan-eMartin changed the base branch from master to v2 April 15, 2025 17:00
@Alan-eMartin Alan-eMartin changed the base branch from v2 to master April 15, 2025 17:46
@Alan-eMartin Alan-eMartin force-pushed the sc-85409-v-demos-are-built-on-pull-request branch from 106578f to 2c2fa46 Compare April 22, 2025 00:04
@Alan-eMartin Alan-eMartin changed the base branch from master to v2 April 23, 2025 18:07
@Alan-eMartin Alan-eMartin changed the base branch from v2 to master April 23, 2025 18:15
@Alan-eMartin Alan-eMartin changed the base branch from master to v2 April 23, 2025 18:47
@Alan-eMartin Alan-eMartin requested a review from josh146 April 23, 2025 18:50
Copy link
Contributor

@doctorperceptron doctorperceptron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice @Alan-eMartin! 🥳 Left a few questions/comments, but overall looks great.

@Alan-eMartin Alan-eMartin requested a review from rashidnhm April 28, 2025 20:15
Copy link
Collaborator

@rashidnhm rashidnhm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments but LGTM 🚀

I am guessing teardown of the v1 pipeline will happen in a separate PR? Until then users will get in essence 2 previews built per PR?

@Alan-eMartin
Copy link
Collaborator Author

Minor comments but LGTM 🚀

I am guessing teardown of the v1 pipeline will happen in a separate PR? Until then users will get in essence 2 previews built per PR?

Thanks for the review @rashidnhm!

No, not exactly. I will keep this in the v2 branch for the time being, and may disable the comment code for now, as frontend work is not completed for this change.

Essentially we will no longer be using gatsby on the frontend, and will be replacing it with NextJS

**Summary:**
Allow internal users to build and deploy **all** or a select list of
demos.

**Related GitHub Issues:**
Internal

---------

Co-authored-by: Paul Finlay <[email protected]>
@Alan-eMartin Alan-eMartin merged commit a775a1d into v2 Apr 29, 2025
9 checks passed
@Alan-eMartin Alan-eMartin deleted the sc-85409-v-demos-are-built-on-pull-request branch April 29, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants