-
Notifications
You must be signed in to change notification settings - Fork 10
ci: standardize docs workflow #4
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -16,13 +16,15 @@ jobs: | |||||
| build: | ||||||
| name: Build & Deploy Docs | ||||||
| runs-on: ubuntu-latest | ||||||
| env: | ||||||
| DOCS_DEPLOY_KEY: ${{ secrets.DOCS_DEPLOY_KEY }} | ||||||
| steps: | ||||||
| - uses: actions/checkout@v6 | ||||||
| with: | ||||||
| fetch-depth: 0 | ||||||
|
|
||||||
| - name: Install uv | ||||||
| uses: astral-sh/setup-uv@v8 | ||||||
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||||||
| with: | ||||||
| version: "latest" | ||||||
|
|
||||||
|
|
@@ -33,12 +35,13 @@ jobs: | |||||
| run: uv sync --dev --extra docs | ||||||
|
|
||||||
| - name: Build docs | ||||||
| run: uv run mkdocs build --strict | ||||||
| run: uv run mkdocs build | ||||||
|
||||||
| run: uv run mkdocs build | |
| run: uv run mkdocs build --strict |
Copilot
AI
Apr 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deploy gating and key injection can be done directly off the secrets context (in the if: and SSH_DEPLOY_KEY assignment) rather than routing through env.DOCS_DEPLOY_KEY. This avoids depending on a derived env value and keeps the secret out of the general environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DOCS_DEPLOY_KEYis being placed into the job-levelenv, which makes the secret available to every step (including third-party actions) and increases the blast radius if any step logs/exports env vars. Prefer keeping the deploy key scoped to the deploy step only.