Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- "robots.txt"
- "sitemap.xml"
- ".github/workflows/pages.yml"
# A release tag runs on refs/tags/*, which the github-pages environment does
# not allow to deploy; workflow_run executes on the default branch instead.
workflow_run:
workflows: [Release]
types: [completed]
workflow_dispatch:

permissions:
Expand All @@ -23,21 +28,37 @@ concurrency:
jobs:
deploy:
name: Deploy landing page
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 0
fetch-tags: true

- name: Configure Pages
uses: actions/configure-pages@v6

- name: Stage static site
run: |
version=$(git tag --list 'v*' --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n1)
if [ -z "$version" ]; then
echo "::error::No v<major>.<minor>.<patch> tag found"
exit 1
fi
echo "Landing page version: $version"
mkdir -p _site
cp index.html CNAME robots.txt sitemap.xml _site/
sed -i "s/{{version}}/${version#v}/g" _site/index.html
if grep -q '{{version}}' _site/index.html; then
echo "::error::{{version}} placeholder left in index.html"
exit 1
fi

- name: Upload artifact
uses: actions/upload-pages-artifact@v5
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
- **Agent instructions consolidated.** `CLAUDE.md` is now the single source of agent instructions, slimmed to the rules that apply to every change — constraints, commands, binding architectural decisions, the PR workflow — with pointers into `docs/` instead of restated directory trees and endpoint lists; area-specific coding rules live in path-scoped rule files. `AGENTS.md` is a short pointer to it. The stale direct-to-main flow and per-commit approval gate are replaced by the protected-`main` PR workflow.

### Fixed
- **The landing page shows the current release, and keeps doing so.** Its header badge and footer said v0.1.6 and its structured data said 0.1.3, long after v0.4.1 shipped. The version is no longer written by hand: the Pages workflow fills it from the newest `v<major>.<minor>.<patch>` tag at deploy time and redeploys after every successful Release run. The footer also credits the author with a link to their site, and the structured-data author carries the same `@id` that site uses.
- **`/metrics` authentication is documented as it behaves.** The README said the endpoint needs no authentication; it is public by default and requires `Authorization: Bearer <token>` once `WebhookEngine__Metrics__ScrapeToken` is set. The README and `docs/SELF-HOSTING.md` now say so and show the Prometheus `authorization` block.

### Removed
Expand Down
17 changes: 13 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@
},
"author": {
"@type": "Person",
"@id": "https://www.sametozkan.com.tr/#person",
"name": "Samet Özkan",
"url": "https://www.sametozkan.com.tr"
"url": "https://www.sametozkan.com.tr/"
},
"license": "https://opensource.org/licenses/MIT",
"codeRepository": "https://github.com/voyvodka/webhook-engine",
"softwareVersion": "0.1.3",
"softwareVersion": "{{version}}",
"programmingLanguage": ["C#", "TypeScript"],
"keywords": "webhook, delivery, .NET, ASP.NET Core, PostgreSQL, self-hosted, open source"
}
Expand Down Expand Up @@ -889,6 +890,14 @@
color: var(--dim);
}

.footer-author {
color: inherit;
text-underline-offset: 0.2em;
transition: color 0.15s;
}

.footer-author:hover { color: var(--muted); }

.footer-links {
display: flex;
gap: 20px;
Expand Down Expand Up @@ -983,7 +992,7 @@
<line x1="18" y1="19.5" x2="19" y2="19.8" stroke="#3EFFA0" stroke-width="1" opacity="0.3"/>
</svg>
<span class="logo-wordmark">Webhook<span>Engine</span></span>
<span class="version-badge">v0.1.6</span>
<span class="version-badge">v{{version}}</span>
</a>
<div class="nav-links">
<a href="https://github.com/voyvodka/webhook-engine/blob/main/docs/GETTING-STARTED.md" class="nav-link" target="_blank" rel="noopener">
Expand Down Expand Up @@ -1323,7 +1332,7 @@ <h2 class="section-title">Everything you need.</h2>
<div class="footer-left">
<span class="footer-name">Webhook<span>Engine</span></span>
<span class="footer-sep">·</span>
<span class="footer-meta">MIT License · v0.1.6</span>
<span class="footer-meta">MIT License · v{{version}} · by <a href="https://www.sametozkan.com.tr/" class="footer-author" rel="author">Samet Özkan</a></span>
</div>
<div class="footer-links">
<a href="https://github.com/voyvodka/webhook-engine" class="footer-link" target="_blank" rel="noopener">GitHub</a>
Expand Down
Loading