Skip to content

Commit b14ab3c

Browse files
authored
Merge pull request #153 from cipherstash/feat/gh-workflow-docs-publish
feat(docs): add workflow for rebuilding public documentation on tag push
2 parents 50a5f38 + e6b423f commit b14ab3c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/rebuild-docs.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Rebuild Docs
2+
3+
on:
4+
push:
5+
tags:
6+
- 'eql-*'
7+
8+
jobs:
9+
trigger-docs-rebuild:
10+
name: Trigger Docs Rebuild
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Send webhook
14+
env:
15+
WEBHOOK_URL: ${{ secrets.DOCS_WEBHOOK_URL }}
16+
run: |
17+
curl -X POST "$WEBHOOK_URL"

DEVELOPMENT.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,23 @@ To cut a [release](https://github.com/cipherstash/encrypt-query-language/release
274274

275275
This will trigger the [Release EQL](https://github.com/cipherstash/encrypt-query-language/actions/workflows/release-eql.yml) workflow, which will build and attach artifacts to [the release](https://github.com/cipherstash/encrypt-query-language/releases/).
276276

277+
#### Public documentation updates
278+
279+
When a tag with the `eql-` prefix is pushed (for example, `eql-1.2.3`), the workflow at `.github/workflows/rebuild-docs.yml` runs and sends a webhook to our Vercel-hosted public docs site to trigger a rebuild.
280+
281+
What happens end-to-end:
282+
283+
- Release EQL builds EQL artifacts and generates API docs (HTML, XML, Markdown). The Markdown frontmatter includes the release version.
284+
- Rebuild Docs posts to the `DOCS_WEBHOOK_URL` secret, which Vercel uses to kick off a fresh build of the public docs.
285+
- The public docs site pulls the latest generated reference (`docs/api/markdown/API.md`) and publishes it under the corresponding version.
286+
287+
Manual triggers and troubleshooting:
288+
289+
- You can re-run the “Rebuild Docs” workflow from the Actions tab if a build fails downstream.
290+
- Ensure the repository secret `DOCS_WEBHOOK_URL` is set and valid; the workflow simply POSTs to that URL.
291+
292+
This mirrors the process used in the sibling `protect` repository so both products’ documentation stay in sync with releases.
293+
277294
### dbdev
278295

279296
We publish a Trusted Language Extension for PostgreSQL for use on [dbdev](https://database.dev/).

0 commit comments

Comments
 (0)