Skip to content

Commit dd92b6e

Browse files
authored
Merge pull request #4437 from ralfhandl/main-document-release-process
main: document release process
2 parents 7f5e1cf + 506cc68 commit dd92b6e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CONTRIBUTING.md

+19
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,25 @@ Reviews requesting changes should have their changes addressed regardless of how
195195
The specification versions are published to the [spec site](https://spec.openapis.org) by creating an `vX.Y.Z-rel` branch where `src/oas.md` is renamed to the appropriate `versions/X.Y.Z.md` file and then merged to `main`.
196196
This renaming on the `vX.Y.Z-rel` branch preserves the commit history for the published file on `main` when using `git log --follow` (as is the case for all older published files).
197197

198+
The steps for creating a `vX.Y.Z-rel` branch are:
199+
200+
1. Update `EDITORS.md` on `main`
201+
2. Merge `main` into `dev` and `dev` into `vX.Y-dev` via PRs
202+
- Sync PRs are automatically created by workflows `sync-main-to-dev` and `sync-dev-to-vX.Y-dev`
203+
3. Prepare spec files in `vX.Y-dev`
204+
- `npm run format-markdown`
205+
- `npm run build-src`
206+
- open `deploy-preview/oas.html` in browser and verify correct formatting
207+
- adjust and repeat until done
208+
- merge changes to `src/oas.md` back into `vX.Y-dev` via PR
209+
4. Create `vX.Y.Z-rel` from `vX.Y-dev` and adjust it
210+
- move `src/oas.md` to `versions/X.Y.Z.md`
211+
- copy `EDITORS.md` to `versions/X.Y.Z-editors.md`
212+
- delete `src/schemas`
213+
- delete `tests/schema`
214+
5. Merge `vX.Y.Z-rel` into `main` via PR
215+
- this PR should only add files `versions/X.Y.Z.md` and `versions/X.Y.Z-editors.md`
216+
198217
The HTML renderings of the specification versions are automatically generated from the `versions` directory on `main` by the [`respec` workflow](https://github.com/OAI/OpenAPI-Specification/blob/main/.github/workflows/respec.yaml), which generates a pull request for publishing the HTML renderings to the [spec site](https://spec.openapis.org).
199218

200219
### Schema Iterations

0 commit comments

Comments
 (0)