This serves to document the release procedure for log4net, which is probably more of interest to maintainers than anyone else, but I've found that there are enough moving parts and time between releases to make the process more difficult than it needs to be. Some parts are automated and others can be in the future.
Assuming the code is in a place where a release can be made, for the imagined release version 3.2.1:
- Update the documentation under
src/site- minimally, this means at least:
src/changelog- copy an existing release folder & think about:
- what does this release change?
- bug fixes?
- enhancements
- don't forget to mention contributors
- people who reported issues
- people who created pull requests
- people who suggested code that was implemented
- copy an existing release folder & think about:
- minimally, this means at least:
- Build release artifacts with
scripts/build-release.ps1- the scripts works on Linux and Windows
- Prerequisites
- Clone out the log4net doc repo (https://github.com/apache/logging-log4net-site)
- check out the
asf-stagingbranch - create a folder which includes the version, eg
log4net-3.2.1
- check out the
- Copy the contents of
target/sitefrom this repo into the folder created in (4)- remember to either update or link in sdk docs from a prior release
- Update the symlinks in the base of the docs repo, ie:
- 3.2.x -> 3.2.1
- 3.x -> 3.2.1
- update the
doap_log4net.rdfto point to the new release - update the
.htaccessfile- the trailing RewriteRule should point to the new log4net-3.2.1 folder
- push the
asf-stagingbranch to github and wait a bit- after a minute or two, check the updates at https://logging.staged.apache.org/log4net
- are you seeing the correct releases page?
- download links should (at this point) not work
- after a minute or two, check the updates at https://logging.staged.apache.org/log4net
- create an rc-releasd at GitHub with a tag like
rc/3.2.1-rc1- attach all the files from the build/artifacts folder, including signatures
- get the artifacts in build/artifacts up to https://downloads.apache.org/logging/log4net/
svn co https://dist.apache.org/repos/dist/dev/logging -N apache-dist-logging-devcd apache-dist-logging-devsvn up log4netsvn delete *mkdir 3.2.1- copy all artifacts to the new folder
svn add *svn commit -m 'log4net 3.2.1'- check https://dist.apache.org/repos/dist/dev/logging/log4net/3.2.1/
- raise a vote on the log4net mailing list (dev@logging.apache.org) - see MailTemplate.txt
- wait
- when the vote has 3 or more +1's, it's time to go live!
- copy the apache artifacts (binary and source) to the release svn repo and commit
svn co https://dist.apache.org/repos/dist/release/logging -N apache-dist-logging-releasecd apache-dist-logging-releasesvn up log4netsvn deleteold items- copy all artifacts to the new folder
svn add *svn commit
- push the .nupkg to nuget.org
- via
dotnet:dotnet nuget push <path to package> -s nuget.org -k <your nuget api key> - via
nuget:nuget push <path to package> -Source nuget.org -ApiKey <your nuget api key>
- via
- don't forget to make the docs live: in the logging-log4net-site folder:
git checkout asf-sitegit pull --rebasegit merge asf-staging
- rename the release at github, eg to
rel/3.2.1- double-check that the
reltag is created
- double-check that the
- apply the next version by calling
./scripts/update-version.ps1 3.2.1 3.2.2