Skip to content

Commit 7d9e87d

Browse files
committed
Update release guide
During the OpenSCAP 1.3.7 upstream release process I noticed that some of the text in the release guide is outdated, inconsistent or missing. In this patch we update the release guide so that it will be easier to perform the next release.
1 parent 488de7f commit 7d9e87d

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

release_tools/README.adoc

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
== Process ==
1010

11-
When releasign alpha/pre-releases, please keep in mind how RPM handles the versioning. Please see how is this handled in SPEC file https://fedoraproject.org/wiki/Packaging:Versioning before you build Fedora and RHEL packages.
11+
When releasing alpha/pre-releases, please keep in mind how RPM handles the versioning. Please see how is this handled in SPEC file https://fedoraproject.org/wiki/Packaging:Versioning before you build Fedora and RHEL packages.
1212

1313
. Ensure the project is in a good shape for the release
1414
+
@@ -17,7 +17,7 @@ When releasign alpha/pre-releases, please keep in mind how RPM handles the versi
1717

1818
. Clone a clean `openscap` repository:
1919

20-
git clone --recurse-submodules https://github.com/OpenSCAP/openscap.git
20+
git clone --recurse-submodules git@github.com:OpenSCAP/openscap.git
2121

2222
. Create `.env` file
2323
+
@@ -94,6 +94,11 @@ Update the `AUTHORS` file for missing authors and the `naming.sh` file if there
9494
Use it to update the `NEWS` file and commit it.
9595
+
9696
The last commit before the release has to have the `openscap-<version>` message (e.g. `openscap-1.3.2`).
97+
+
98+
Tag the commit and push the changes to upstream. You need to be allowed to push without pull requests in the GitHub repository settings.
99+
+
100+
git tag $version
101+
git push origin maint-1.3
97102

98103
. Create tarballs and GitHub release.
99104
+
@@ -105,14 +110,18 @@ Add relevant part of the NEWS file as a release description.
105110
+
106111
Attach `openscap-X.Y.Z.tar.gz` and `openscap-X.Y.Z.tag.gz.sha512` files to the GH release, created against the release tag.
107112

108-
. Run `new-release.sh`.
113+
. Run `new-release.sh $new_version`.
114+
+
115+
You need to provide the expected next version, ie. if you release 1.3.7 you should put there 1.3.8.
116+
This will handle milestones swap on GitHub and it will bump version numbers in `versions.sh` to be ready for the next upstream release.
117+
+
118+
Then, change the version to expected next version in `/CMakeLists.txt`
109119
+
110-
This will create and push version tags, create new GitHub release and handle milestones swap.
111-
Finally, it will bump version numbers in `versions.sh` to be ready for the next upstream release.
120+
Commit and push the changes.
112121

113122
. Generate and publish documentation.
114123
+
115-
Generate documentation by running `make docs`. Then, upload the generated OpenSCAP User manual and Doxygen API documentation to https://static.open-scap.org/ (Ask project maintainers for information on how to update https://static.open-scap.org/).
124+
Generate documentation by running `cmake -DENABLE_DOCS=ON .. && make docs`. Then, upload the generated OpenSCAP User manual and Doxygen API documentation to https://static.open-scap.org/ (Ask project maintainers for information on how to update https://static.open-scap.org/).
116125

117126
. Build packages for RHEL and Fedora.
118127

0 commit comments

Comments
 (0)