Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: Add a preview-build action for PRs#227

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
mjahoda wants to merge1 commit intomain
base:main
Choose a base branch
Loading
frompreview-build-functionality

Conversation

mjahoda
Copy link
Contributor

An attempt to add an automatically triggered action that provides a preview build for every new or re-opened pull request.

Copy link
Contributor

@rolfedhrolfedh left a comment

Choose a reason for hiding this comment

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

Hi Mirek,

I've reviewed the .github/workflows/preview-build.yml workflow, and it's looking great! It's well-structured and aligns perfectly with our goals for automating documentation previews. I have a few friendly suggestions that could further enhance its effectiveness:

  • Comments for Clarity: Adding brief comments to complex steps or choices (like the Docker usage) could make the workflow more accessible to others, especially new contributors or those not familiar with specific tools.
  • Error Handling: Consider incorporating steps for error handling, such as notifications for build failures. This could improve our response time for resolving any issues.
  • Caching Dependencies: If the build process involves stable dependencies, implementing caching could significantly reduce build times and resource usage.
  • Security Checks: Ensuring the Docker images and actions are from trusted and verified sources is crucial for maintaining the security of our workflow.
  • Workflow Documentation: A short README explaining the purpose and workings of this workflow (and any others in .github/workflows) would be beneficial for maintainability and onboarding.

These are just enhancements to what is already a solid foundation. I'm looking forward to seeing this project evolve how it will improve our documentation process. Great work!

Best, Rolfe

Copy link
Collaborator

@IanFrangsIanFrangs left a comment

Choose a reason for hiding this comment

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

LGTM!

@mjahoda
Copy link
ContributorAuthor

@rolfedh@IanFrangs@emmurphy1 Thank you for checking the PR, but it is far from to be finished. I tried to indicate this byWIP: in the title. Because it's based on the YAML file [1] we use for publishing our main deliverable, we can use Rolfe's suggestions also there.

I'm still struggling to realize what URL can I use for deploying preview builds. In the Github docs for deploying PR preview I've checked, I only foundurl: ${{ steps.deployment.outputs.page_url }} we already use for the latest published mod-docs guide.

After the upcoming RHEL Beta releases are out, I'll try to follow guidance on [2]. And probably on some copy of this repository first.

[1]https://github.com/redhat-documentation/modular-docs/blob/main/.github/workflows/deploy-site.yml

[2]https://medium.com/@vegaobed/how-to-enable-pull-request-previews-in-github-pages-dc3a94fa969b

rolfedh reacted with thumbs up emoji

@mjahodamjahoda marked this pull request as draftMarch 13, 2024 08:56
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rolfedhrolfedhrolfedh approved these changes

@emmurphy1emmurphy1emmurphy1 approved these changes

@IanFrangsIanFrangsIanFrangs approved these changes

At least 4 approving reviews are required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@mjahoda@rolfedh@emmurphy1@IanFrangs

[8]ページ先頭

©2009-2025 Movatter.jp