Skip to content

Commit d709921

Browse files
authored
ci(deploy-web): trigger on v* tags, drop the paths filter (#215)
The v1.8.0 release fast-forwarded main with 67 changed web/ files, yet deploy-web never ran — the push 'paths: web/**' filter silently skipped it, so the live showcase kept serving the previous release until a manual workflow_dispatch. Drop the paths filter (main is only pushed at releases / hotfixes, so an unconditional deploy is cheap and correct) and add a 'v*' tag trigger as a second guaranteed path. Existing concurrency group de-dupes the two triggers a release fires.
1 parent 808ce73 commit d709921

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/deploy-web.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@ name: Deploy web showcase to GitHub Pages
99
# REQUIRES: repository Settings → Pages → Source = "GitHub Actions"
1010
# (one-time switch from "Deploy from a branch"). Until that switch is made,
1111
# this workflow builds the artifact but Pages keeps serving the old source.
12+
#
13+
# Triggers: every push to `main` AND every `v*` release tag. The tag trigger
14+
# is the reliable one for releases — the v1.8.0 release fast-forwarded `main`
15+
# with 67 changed `web/` files yet the old `paths: web/**` filter silently
16+
# skipped the deploy, so the live site kept serving the previous release. We
17+
# dropped the paths filter rather than depend on it: `main` is only pushed at
18+
# releases / hotfixes, so deploying unconditionally is cheap and correct, and
19+
# the `v*` tag is a second guaranteed trigger. `concurrency` de-dupes the two
20+
# triggers a release fires.
1221

1322
on:
1423
push:
1524
branches: [main]
16-
paths:
17-
- "web/**"
18-
- ".github/workflows/deploy-web.yml"
25+
tags: ["v*"]
1926
workflow_dispatch:
2027

2128
permissions:

0 commit comments

Comments
 (0)