Skip to content

Commit 342ba7c

Browse files
ci: take the docs workflow from the hub, keep dependabot.yml (#99)
The hub's zensical-docs pack now has this repository's uv sync --locked, plus clientwright's workflow_dispatch, concurrency group and --no-dev --group docs on uv run, so docs.yml takes the hub's version and gets its updates again. .engineering-assets.yml keeps .github/dependabot.yml this repository's own: it adds the docker ecosystem for the published image.
1 parent 81d72b8 commit 342ba7c

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎.engineering-assets.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This repository's choices about the files of the engineering-assets hub,
2+
# bedrock-python/engineering-assets, which subscribes it. version: 1 is the
3+
# format; packs would add packs, ignore keeps paths out of the sync.
4+
version: 1
5+
ignore:
6+
# This repository adds the docker ecosystem for the image it publishes.
7+
- .github/dependabot.yml

‎.github/workflows/docs.yml‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,31 @@ name: Docs
33
on:
44
push:
55
branches: [master]
6+
workflow_dispatch:
67

78
permissions:
89
contents: read
910
pages: write
1011
id-token: write
1112

13+
# Two quick pushes must not race each other onto Pages.
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
1218
jobs:
1319
build:
1420
runs-on: ubuntu-latest
1521
steps:
1622
- uses: actions/checkout@v7
1723
- uses: astral-sh/setup-uv@v7
24+
# --locked: fail when uv.lock is out of date with pyproject.toml.
1825
- run: uv sync --locked --no-dev --group docs
1926
- run: cp CHANGELOG.md docs/changelog.md
20-
- run: uv run zensical build --clean
21-
- run: uv run python scripts/emit_markdown.py
27+
# --no-dev on `uv run` too: without it the implicit sync reinstalls the
28+
# whole dev group just to build docs.
29+
- run: uv run --no-dev --group docs zensical build --clean
30+
- run: uv run --no-dev --group docs python scripts/emit_markdown.py
2231
- uses: actions/upload-pages-artifact@v5
2332
with:
2433
path: site

0 commit comments

Comments
 (0)