Skip to content
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

DOP-4247: Build Artifacts #1000

Merged
merged 77 commits into from
Feb 6, 2024
Merged

DOP-4247: Build Artifacts #1000

merged 77 commits into from
Feb 6, 2024

Conversation

mmeigs
Copy link
Collaborator

@mmeigs mmeigs commented Feb 1, 2024

Stories/Links:

DOP-4247

Links to Builds:

Cloud-docs
Server Docs

^ note above you can download the build artifacts

Notes:

This PR utilizes the new (PR) Github Action to download latest build data of the desired project, build the docs site, and save the build bundle to an Artifact.

I've set up one workflow for each desired project.

Because of using data from the Snooty Data API, even with mimicking the structure of our manifest files, there were minimal changes necessary to ingest this within Snooty.

Copy link
Collaborator

@rayangler rayangler left a comment

Choose a reason for hiding this comment

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

This is super cool!

.github/workflows/lighthouse-cloud-docs.yml Outdated Show resolved Hide resolved
.github/workflows/lighthouse-cloud-docs.yml Outdated Show resolved Hide resolved
@mmeigs mmeigs requested a review from seungpark February 2, 2024 18:56
Copy link
Collaborator

@seungpark seungpark left a comment

Choose a reason for hiding this comment

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

the output looks great! a couple comments below for usage of artifacts between Access Build Data to Build Snooty steps

also, guessing this is from a previous commit, but this action shows artifact with name lighthouse-cloud-docs.zip - where is the lighthouse coming from?

.github/workflows/stage-docs-site.yml Outdated Show resolved Hide resolved
.github/workflows/stage-docs-site.yml Outdated Show resolved Hide resolved
run: |
npm ci --legacy-peer-deps
npm run build
- name: Save Artifact
Copy link
Collaborator

Choose a reason for hiding this comment

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

laying the law for DOP-4248 ❤️

.github/workflows/stage-docs-site.yml Show resolved Hide resolved
@mmeigs
Copy link
Collaborator Author

mmeigs commented Feb 6, 2024

Refactored with all feedback taken into account. Also, for cleanliness, depending on a new env var GATSBY_BUILD_FROM_JSON instead of parsing to know if it is a zip file path.

Copy link
Collaborator

@rayangler rayangler left a comment

Choose a reason for hiding this comment

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

LGTM!

.github/workflows/stage-docs-site.yml Outdated Show resolved Hide resolved
.github/workflows/stage-docs-site.yml Outdated Show resolved Hide resolved
@mmeigs mmeigs merged commit 4855a05 into main Feb 6, 2024
4 checks passed
@mmeigs mmeigs deleted the DOP-4247-build-artifacts branch February 6, 2024 17:05
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.

4 participants