Commit 33b21a9
authored
feat(docs): deploy main branch preview alongside PR previews (#707)
## Summary
- Extend the docs-preview workflow to also trigger on pushes to `main`,
deploying a continuously-updated preview to `_preview/pr-main/` on
`gh-pages`
- Rename the umbrella directory from `pr-preview` to `_preview`
- Scope concurrency per-ref (`docs-preview-${{ github.ref }}`) with
`cancel-in-progress: true`
## Details
Production deploys via Craft remain unchanged. This adds a `main` branch
preview so merged docs changes are immediately viewable at
`cli.sentry.dev/_preview/pr-main/` without waiting for a release.
The workflow reuses `rossjrw/pr-preview-action` for both cases with
conditional inputs:
- **Push to main**: `action: deploy`, `pr-number: main`, `comment:
false`
- **PR events**: `action: auto` (unchanged behavior)
The astro config's landing page regex is updated to match the new
`_preview` path and the `main` preview.
Old `pr-preview/` directory on `gh-pages` is left as-is (harmless, will
be cleaned up by future Craft releases).1 parent ac7e9e0 commit 33b21a9
2 files changed
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
| |||
14 | 23 | | |
15 | 24 | | |
16 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
17 | 30 | | |
18 | 31 | | |
19 | 32 | | |
| |||
41 | 54 | | |
42 | 55 | | |
43 | 56 | | |
44 | | - | |
45 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
46 | 60 | | |
47 | 61 | | |
48 | 62 | | |
| |||
102 | 116 | | |
103 | 117 | | |
104 | 118 | | |
105 | | - | |
| 119 | + | |
106 | 120 | | |
107 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments