Skip to content

Commit dbb2d8f

Browse files
authored
Merge pull request #1461 from evgenyz/maint-1.3
Fixes for the release scripts. Release guide updates.
2 parents 4382c4d + 601d443 commit dbb2d8f

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

release_tools/README.adoc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,22 @@ Update the `AUTHORS` file for missing authors and the `naming.sh` file if there
4949
+
5050
Use it to update the `NEWS` file and commit it.
5151
+
52-
The last commit before the release has to have the `openscap-<version>` message (e.g. `openscap-1.2.17`).
52+
The last commit before the release has to have the `openscap-<version>` message (e.g. `openscap-1.3.2`).
53+
54+
. Create tarballs and GitHub release.
55+
+
56+
In a clean copy of the release branch run `cmake .. && make package_source` in the `build` directory.
57+
+
58+
Create new GitHub release with the name of the vesrion (e.g. 1.3.2) being released.
59+
+
60+
Add relevant part of the NEWS file as a release description.
61+
+
62+
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.
5363

5464
. Run `new-release.sh`.
5565
+
5666
This will create and push version tags, create new GitHub release and handle milestones swap.
57-
Finally, it will bump version numbers in `versions.sh` to be ready for the next upstream release.
67+
Finally, it will bump version numbers in `versions.sh` to be ready for the next (e.g. 1.3.3) upstream release.
5868

5969
. Build OpenSCAP for Windows
6070
+

release_tools/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ upload_to_git()
355355
# $3: The new version
356356
flip_milestones()
357357
{
358-
"./$SCRIPT_DIR/move-milestones.py" --owner "$2" --api-token "$1" "$version" "$3"
358+
"$SCRIPT_DIR/move-milestones.py" --owner "$2" --auth-token "$1" "$version" "$3"
359359
}
360360

361361

@@ -414,6 +414,6 @@ release_to_git_and_bump_release()
414414
check_release_is_ok
415415
release_to_git
416416
# upload_to_git # to be done when https://github.com/PyGithub/PyGithub/pull/525 is merged.
417-
flip_milestones --auth-token "$GITHUB_TOKEN" openscap "$_new_version"
417+
flip_milestones "$GITHUB_TOKEN" openscap "$_new_version"
418418
bump_release "$_new_version"
419419
}

0 commit comments

Comments
 (0)