Skip to content

Commit 9c2681f

Browse files
committed
Improve guidelines and templates for the release process
1 parent e4abf29 commit 9c2681f

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

admin/releasing.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ Steps
2525
- `svn up log4cxx`
2626
- `cd log4cxx`
2727
- `svn delete *`
28+
- `mkdir 1.3.0`
29+
- `svn add 1.3.0`
30+
- `cd 1.3.0`
2831
1. Download the packaged release files from Github
2932
- Open https://github.com/apache/logging-log4cxx/commits/v1.3.0-RC1 in your web browser
3033
- Click the green tick mark on the top commit
@@ -35,13 +38,12 @@ Steps
3538
- The numbered steps will display
3639
- Click the link next to `Artifact download URL:`
3740
- The browser will download the file `Upload release files.zip` onto your system
38-
1. Unpack the release files using these commands
39-
- `cd apache-dist-logging-dev/log4cxx`
41+
1. Unpack the release files using these commands (with `apache-dist-logging-dev/log4cxx/1.3.0` as the working directory)
4042
- `unzip "$HOME/Downloads/Upload release files.zip"`
41-
1. Sign release artifacts (Refer: https://infra.apache.org/release-signing.html) (with `apache-dist-logging-dev/log4cxx` as the working directory)
43+
1. Sign release artifacts (Refer: https://infra.apache.org/release-signing.html) (with `apache-dist-logging-dev/log4cxx/1.3.0` as the working directory)
4244
- `gpg --armor --output apache-log4cxx-1.3.0.zip.asc --detach-sig apache-log4cxx-1.3.0.zip`
4345
- `gpg --armor --output apache-log4cxx-1.3.0.tar.gz.asc --detach-sig apache-log4cxx-1.3.0.tar.gz`
44-
1. Send the new artifacts to svn (with `apache-dist-logging-dev/log4cxx` as the working directory)
46+
1. Send the new artifacts to svn (with `apache-dist-logging-dev/log4cxx/1.3.0` as the working directory)
4547
- `svn add *`
4648
- `svn commit -m 'log4cxx 1.3.0'`
4749
- check https://dist.apache.org/repos/dist/dev/logging/log4cxx
@@ -51,7 +53,7 @@ Steps
5153
1. When the vote has 3 or more +1's, announce the result
5254
- Using [this template](MailTemplate.Result.txt)
5355
1. Get artifacts up to https://downloads.apache.org/logging/log4cxx/
54-
- `svn move -m "Release log4cxx 1.3.0" https://dist.apache.org/repos/dist/dev/logging/log4cxx https://dist.apache.org/repos/dist/release/logging/log4cxx/1.3.0`
56+
- `svn move -m "Release log4cxx 1.3.0" https://dist.apache.org/repos/dist/dev/logging/log4cxx/1.3.0 https://dist.apache.org/repos/dist/release/logging/log4cxx/`
5557
1. Tag the released version
5658
- `git checkout v1.3.0-RC1`
5759
- `git push origin tag rel/v1.3.0`
@@ -61,14 +63,15 @@ Steps
6163
1. Enter the release date in `src/site/markdown/change-report-gh.md`
6264
- Commit the change
6365
- Update the staged web site using [the update procedure](staging.md)
64-
1. Check the staged web site is ready to go live
66+
1. Check the staged web site (https://logging.staged.apache.org/log4cxx) is ready to go live
6567
- Are you are seeing the release date on changelog?
6668
- Do the links on download page work?
6769
1. Make the new version of the web site live.
6870
- `git clone https://github.com/apache/logging-log4cxx-site /tmp/log4cxx-site`
6971
- `cd /tmp/log4cxx-site`
72+
- `git fetch origin asf-staging`
73+
- `git rebase origin/asf-staging`
7074
- `git checkout asf-site`
71-
- `git rebase asf-staging`
7275
- `git push origin asf-site`
7376
1. Check https://logging.apache.org/log4cxx (after a minute or two)
7477
- Are you seeing the new pages?

admin/validate-release.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ if [ -z "$VERSION" ] ; then
77
VERSION=1.3.0
88
fi
99

10+
if [ -z "$STAGE" ] ; then
11+
STAGE=dev # Alternatively release
12+
fi
13+
1014
if [ -z "$BASE_DL" ] ; then
11-
BASE_DL=https://dist.apache.org/repos/dist/dev/logging/log4cxx
15+
BASE_DL=https://dist.apache.org/repos/dist/$STAGE/logging/log4cxx
1216
fi
1317
if [ -z "$ARCHIVE" ] ; then
1418
ARCHIVE=apache-log4cxx-$VERSION
@@ -20,7 +24,7 @@ fi
2024
test -d "$TEST_DIRECTORY" || mkdir "$TEST_DIRECTORY"
2125
cd "$TEST_DIRECTORY"
2226

23-
FULL_DL="$BASE_DL/$ARCHIVE"
27+
FULL_DL="$BASE_DL/$VERSION/$ARCHIVE"
2428

2529
for EXT in "tar.gz" "zip" ; do
2630
wget "$FULL_DL.$EXT" || exit $?

0 commit comments

Comments
 (0)