Skip to content

Commit c69fd36

Browse files
authored
Merge pull request #1074 from jan-cerny/release_readme
Update release tools README
2 parents af6888a + cea7f49 commit c69fd36

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

release_tools/README.adoc

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,33 @@
22

33
== Prerequisities ==
44

5-
* The `.env` file.
6-
Create `.env` file in this directory (i.e. where the release scripts are).
7-
You are supposed to define environment variables that contain sensitive information, s.a. GitHub access tokens.
8-
Exact contents of the file are described below.
9-
10-
* Github automation
11-
* System with `python3.6` or greater, installed https://pypi.python.org/pypi/PyGithub/1.35[PyGithub] module.
12-
* A Github token - get one on https://github.com/settings/tokens and put it in the `.env` file, so it contains the line `GITHUB_TOKEN='<your token here>'`.
5+
* System with `python3.6` or greater, installed https://pypi.python.org/pypi/PyGithub/1.35[PyGithub] module.
6+
* A GitHub token - get one on https://github.com/settings/tokens. Choose `repo` scope.
137

148
== Process ==
159

16-
1. Clone a clean `openscap` repository:
10+
. Clone a clean `openscap` repository:
1711

1812
git clone https://github.com/OpenSCAP/openscap.git
1913

20-
2. Check out that the information within `versions.sh` is accurate.
14+
. Create `.env` file
15+
+
16+
You are supposed to define environment variables that contain sensitive information, s.a. GitHub access tokens.
17+
Create an `.env` file in the `release_tools` directory (i.e. where the release scripts are).
18+
Put your GitHub token in the `.env` file, so it contains the following line:
19+
20+
GITHUB_TOKEN='<your token here>'
21+
22+
. Check out that the information within `versions.sh` is accurate.
2123
+
22-
Openscap versions are supposed to have correct values from the previous build (see the step 6), but e.g. the `latest_fedora` and `latest_rhel` may need to be updated if work on a distribution with new version has begun.
24+
OpenSCAP versions are supposed to have correct values from the previous build (see the step 6), but e.g. the `latest_fedora` and `latest_rhel` may need to be updated if work on a distribution with new version has begun.
2325

24-
3. Run `up_to_compliance_check.sh`.
26+
. Run `up_to_compliance_check.sh`.
2527
+
2628
In the ideal case, the script ends after the ABI compatiblity check finishes.
2729
Review the check results and act accordingly to them.
2830

29-
4. Run `handle_ltversions.sh`.
31+
. Run `handle_ltversions.sh`.
3032
+
3133
According to the result from the compliance check (and the decision what to do about possible API/ABI changes), you run the script with an argument `bugfix`, `backwards_compatible` or `breaking_change`.
3234
+
@@ -39,7 +41,7 @@ Use this guideline to decide:
3941
+
4042
This changes the libtool library version number so it reflects the API/ABI change.
4143

42-
5. Update the NEWS and make the release commit.
44+
. Update the NEWS and make the release commit.
4345
+
4446
Make sure that everything in the repository is in place, and that the only thing missing is the `NEWS` file and tags.
4547
Use the `news_template.sh` script to generate a starting point for your `NEWS` file.
@@ -49,7 +51,7 @@ Use it to update the `NEWS` file and commit it.
4951
+
5052
The last commit before the release has to have the `openscap-<version>` message (e.g. `openscap-1.2.17`).
5153

52-
6. Run `new-release.sh`.
54+
. Run `new-release.sh`.
5355
+
5456
This will create and push version tags, create new GitHub release and handle milestones swap.
5557
Finally, it will bump version numbers in `versions.sh` to be ready for the next upstream release.

0 commit comments

Comments
 (0)