From e1cb15c443889a0ed076519a891675c1beb9abf5 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Wed, 7 Oct 2026 00:14:56 +0200 Subject: [PATCH] [CI] Deploy docs only on version tags --- .github/workflows/docs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5329bafc..ef7f92e1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,12 +2,13 @@ name: Documentation # The site is built by `make docs`: Zensical renders the guides under docs/ # (see mkdocs.yml) and phpDocumentor renders the API reference into /api/. -# Pull requests build only — the build is strict, so a broken internal link -# fails CI instead of shipping a dead link to the site. +# The site is deployed on version tags, so it documents the latest release +# rather than unreleased main. Pull requests build only — the build is strict, +# so a broken internal link fails CI instead of shipping a dead link to the site. on: push: - branches: [main] + tags: ['v*'] pull_request: workflow_dispatch: