forked from googleapis/google-cloud-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingdependenciesPull requests that update a dependency filePull requests that update a dependency filedocumentationImprovements or additions to documentationImprovements or additions to documentationduplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersinvalidThis doesn't seem rightThis doesn't seem rightjavascriptPull requests that update javascript codePull requests that update javascript codequestionFurther information is requestedFurther information is requested
Description
Reviewer's Guide
Adds a new GitHub Actions workflow to build a Jekyll site with preinstalled GitHub Pages dependencies and deploy it to GitHub Pages on pushes to main or manual dispatch.
Sequence diagram for Jekyll site build and GitHub Pages deployment workflow
sequenceDiagram
participant Dev as Developer
participant Repo as GitHub_Repository
participant Actions as GitHub_Actions_Workflow
participant Build as Job_build
participant Deploy as Job_deploy
participant Checkout as actions_checkout_v4
participant ConfigurePages as actions_configure_pages_v5
participant JekyllBuild as actions_jekyll_build_pages_v1
participant UploadArtifact as actions_upload_pages_artifact_v3
participant DeployPages as actions_deploy_pages_v4
participant Pages as GitHub_Pages
Dev->>Repo: Push commit to main
Repo-->>Actions: Trigger workflow (push to main)
activate Actions
Actions->>Build: Start build job (ubuntu-latest)
activate Build
Build->>Checkout: Run checkout step
Checkout-->>Build: Repository checked out
Build->>ConfigurePages: Configure Pages
ConfigurePages-->>Build: Pages configuration ready
Build->>JekyllBuild: Build Jekyll site (source ./, destination ./_site)
JekyllBuild-->>Build: Static site generated in _site
Build->>UploadArtifact: Upload Pages artifact
UploadArtifact-->>Build: Artifact stored for deployment
deactivate Build
Actions->>Deploy: Start deploy job (needs build)
activate Deploy
Deploy->>DeployPages: Deploy artifact to GitHub Pages
DeployPages-->>Pages: Publish site to GitHub Pages
DeployPages-->>Deploy: Output page_url
deactivate Deploy
Actions-->>Dev: Workflow completed with published site URL
Flow diagram for GitHub Actions Jekyll build and deploy jobs
flowchart TD
A["Workflow triggers\n- push to main\n- workflow_dispatch"] --> B["Set GITHUB_TOKEN permissions\ncontents: read, pages: write, id-token: write"]
B --> C["Configure concurrency\nGroup: pages, cancel-in-progress: false"]
C --> D["Job build\nRuns-on: ubuntu-latest"]
D --> D1["Step: actions/checkout@v4"]
D1 --> D2["Step: actions/configure-pages@v5"]
D2 --> D3["Step: actions/jekyll-build-pages@v1\nsource: ./, destination: ./_site"]
D3 --> D4["Step: actions/upload-pages-artifact@v3"]
D4 --> E["Job deploy\nRuns-on: ubuntu-latest\nEnvironment: github-pages"]
E --> E1["Step: actions/deploy-pages@v4\nuses artifact from build\noutputs: page_url"]
File-Level Changes
| Change | Details | Files |
|---|---|---|
| Introduce a GitHub Actions workflow for Jekyll build and GitHub Pages deployment. |
|
.github/workflows/jekyll-gh-pages.yml |
Tips and commands
Interacting with Sourcery
- Trigger a new review: Comment
@sourcery-ai reviewon the pull request. - Continue discussions: Reply directly to Sourcery's review comments.
- Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with@sourcery-ai issueto create an issue from it. - Generate a pull request title: Write
@sourcery-aianywhere in the pull
request title to generate a title at any time. You can also comment
@sourcery-ai titleon the pull request to (re-)generate the title at any time. - Generate a pull request summary: Write
@sourcery-ai summaryanywhere in
the pull request body to generate a PR summary at any time exactly where you
want it. You can also comment@sourcery-ai summaryon the pull request to
(re-)generate the summary at any time. - Generate reviewer's guide: Comment
@sourcery-ai guideon the pull
request to (re-)generate the reviewer's guide at any time. - Resolve all Sourcery comments: Comment
@sourcery-ai resolveon the
pull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore. - Dismiss all Sourcery reviews: Comment
@sourcery-ai dismisson the pull
request to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment
@sourcery-ai reviewto trigger a new review!
Customizing Your Experience
Access your dashboard to:
- Enable or disable review features such as the Sourcery-generated pull request
summary, the reviewer's guide, and others. - Change the review language.
- Add, remove or edit custom review instructions.
- Adjust other review settings.
Getting Help
- Contact our support team for questions or feedback.
- Visit our documentation for detailed guides and information.
- Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.
Originally posted by @sourcery-ai[bot] in #230 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdependenciesPull requests that update a dependency filePull requests that update a dependency filedocumentationImprovements or additions to documentationImprovements or additions to documentationduplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersinvalidThis doesn't seem rightThis doesn't seem rightjavascriptPull requests that update javascript codePull requests that update javascript codequestionFurther information is requestedFurther information is requested
Projects
Status
Done
Status
Done