# dhruvmojidra619-hub/gh-deployment-workflow architecture

> Architecture diagram of the GitHub repository dhruvmojidra619-hub/gh-deployment-workflow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dhruvmojidra619-hub/gh-deployment-workflow
- Repository: https://github.com/dhruvmojidra619-hub/gh-deployment-workflow

## Overview

This repository demonstrates automatic deployment of a static site to GitHub Pages. A developer changes `index.html` and pushes to `main`; the configured GitHub Actions workflow detects changes to that file, checks out and packages the site, then deploys it. The README documents these stages, but no source excerpts were provided, so the workflow’s internal implementation details are not independently verified.

Main entry points: [`.github/workflows/deploy.yml`](https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/.github/workflows/deploy.yml) (Path-Filtered Trigger), [`index.html`](https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/index.html) (Site Content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Static Site"]
  node_index["Site Content<br/>[index.html]"]
end

subgraph group_automation["Deployment Workflow"]
  node_workflow["Path-Filtered Trigger<br/>[deploy.yml]"]
  node_package["Checkout and Package<br/>[deploy.yml]"]
  node_deploy["Publish Site<br/>[deploy.yml]"]
end

subgraph group_hosting["Hosted Site"]
  node_pages["GitHub Pages"]
end

node_developer(("Developer"))

node_developer -->|"changes"| node_index
node_developer -->|"pushes to main"| node_workflow
node_workflow -->|"filters changes"| node_index
node_workflow -->|"triggers"| node_package
node_package -->|"packages site"| node_deploy
node_deploy -->|"deploys to"| node_pages

click node_index "https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/index.html"
click node_workflow "https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/.github/workflows/deploy.yml"
click node_package "https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/.github/workflows/deploy.yml"
click node_deploy "https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/.github/workflows/deploy.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_index toneBlue
class node_workflow,node_package,node_deploy toneAmber
class node_pages toneMint
class node_developer toneIndigo
```

## Components

### Static Site

- [Site Content](https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/index.html): `index.html`

### Deployment Workflow

- [Path-Filtered Trigger](https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/.github/workflows/deploy.yml): `.github/workflows/deploy.yml`
- [Checkout and Package](https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/.github/workflows/deploy.yml): `.github/workflows/deploy.yml`
- [Publish Site](https://github.com/dhruvmojidra619-hub/gh-deployment-workflow/blob/main/.github/workflows/deploy.yml): `.github/workflows/deploy.yml`

### Hosted Site

- **GitHub Pages**

### Other components

- **Developer**

## Connections

- Developer → Site Content: changes (evidence: `README.md`)
- Developer → Path-Filtered Trigger: pushes to main (evidence: `README.md`)
- Path-Filtered Trigger → Site Content: filters changes (evidence: `README.md`)
- Path-Filtered Trigger → Checkout and Package: triggers (evidence: `README.md`)
- Checkout and Package → Publish Site: packages site (evidence: `README.md`)
- Publish Site → GitHub Pages: deploys to (evidence: `README.md`)
