Commit d9724df
authored
Integrate publish-documentation into release workflow; remove push auto-trigger (#169)
`publish-documentation.yml` was firing automatically on every push to
`release/**`, running independently from `release.yml` and outside the
controlled release pipeline.
## Changes
**`publish-documentation.yml`**
- Replaced `push` trigger with `workflow_call` — workflow is now
exclusively driven by `release.yml` or manual dispatch
- `workflow_dispatch` retained for on-demand runs
**`release.yml`**
- Added `publish-documentation` job between `pack` and
`publish-package`:
- Depends on `pack` + `validate-release`
- Gated with `if: is-release == 'true'` — skipped on `preview/**`
branches
- Calls `./.github/workflows/publish-documentation.yml` with explicit
`pages: write` + `id-token: write` permissions
- Updated `publish-package` to depend on `publish-documentation` with an
`always()`-based condition to handle the `skipped` result on preview
branches, preventing the gate from blocking NuGet publishing:
```yaml
publish-package:
needs: [pack, validate-release, publish-documentation]
if: >-
always() &&
needs.pack.result == 'success' &&
needs.validate-release.result == 'success' &&
(needs.publish-documentation.result == 'success' || needs.publish-documentation.result == 'skipped')
```1 parent a48f79c commit d9724df
2 files changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
209 | 219 | | |
210 | 220 | | |
211 | | - | |
| 221 | + | |
| 222 | + | |
212 | 223 | | |
213 | 224 | | |
214 | 225 | | |
| |||
0 commit comments