When doing a new release of ownCloud Server like 10.x
, a new version branch must be created based on master
. It is necessary to do this in steps. Keep in mind that we only process master and the latest two versions. For older versions we only keep the pdf files statically - if possible.
Step 1: This will create and configure the new 10.x
branch properly
- Go to the settings of this repository and check/change the protection of the branch list so that
the upcoming
10.x
branch can get pushed. - Create a new
10.x
branch based on latestorigin/master
- Copy the
.drone.star
file from the former10.x-1
branch (it contains the correct branch specific setup rules and replaces the current one coming from master) - In
.drone.star
setlatest_version
to10.x
(on top in sectiondef main(ctx)
). - Check in
site.yml
in sectioncontent.sources
: that the following value is set:- url: .
and incontent.sources.url
the following value is set:- HEAD
. - In
antora.yml
, set theversion:
key on top to the same as the branch name like10.x
- In
antora.yml
, in sectionasciidoc.attributes
, DO NOT adjust relevant-version
keys. They are only used for local building. - In
site.yml
, in sectionasciidoc.attributes
, DO NOT adjust relevant-version
keys. They are only used for local building and will be correctly set in the docs repo when doing a full build. - Run a build by entering
yarn antora-local
. No build errors should occur. - Commit the changes and push the new
10.x
branch. This makes the branch available for futher processing. DO NOT CREATE A PR!
Step 2: This will configure the master branch properly to use the new 10.x
branch
- Create new
changes_necessary_for_10.x
branch based on latestorigin/master
. - In
.drone.star
setlatest_version
to10.x
(on top in sectiondef main(ctx)
). - In
antora.yml
, check if theversion:
key is set tonext
. - In
site.yml
and inantora.yml
, DO NOT adjust relevant-version
keys. - Run a build by entering
yarn antora
. No build errors or warnings should occur. - Commit changes and push them. (Check the branch protection rules upfront so that the push passes.)
- Create a Pull Request and see the text suggestion at the bottom. When CI is green, all is done correctly. Merge the PR to master when the 10.x branch is close to be released.
Step 3: Protection and Renaming
- Go to the settings of this repository and change the protection of the branch list so that
the
10.x
branch gets protected. - Unprotect the
10.x-2
branch and rename it tox_archived_10.x-2
. Note that this step can be postponed if needed. Note that after renaming, local building cant be done anymore.
Step 4: Changes in the Docs Repo
- In
site.yml
of the docs repo, adjust all-version
keys in sectionattributes
related to this repo according the new and former releases. Note that the values MUST NOT contain the trailing@
. (The trailing @ character allows the value to be overwritten like from the correspondingantora.yml
file which is only necessary for local building the corresponding docs-xxx repo.) Note that merging that PR should be close before publishing the relevant code release.
Step 5: Set URI latest
Path Part to 10.x
- Nothing needs to be done there. The moment when the new server release gets tagged - which is part of the release process -
latest
will be automatically set to the tagged release number. This works automatically up to version10.20
. After that, backend admins need to be informed to updated the underlying process.
Text Suggestion for Step 2
The following text is a copy/paste suggestion for the PR in step 2, replace the branch numbers accordingly:
These are the changes necessary to finalize the creation of the 10.x branch.
* The 10.x branch is already pushed and prepared and is included in the branch protection rules.
* When 10.x (core) is finally out, the 10.x-2 branch can be archived, see step 3 in [Create a New Version Branch](https://github.com/owncloud/docs-server/blob/master/docs/new-version-branch.md)
* Note, that the 10.x branch in this repo is already created, but the `latest` pointer on the web will be set to it automatically when the tag in core is set. This means, that in the docs homepage, `latest` will point to 10.x-1 until the tag in core is set accordingly. When merging this PR, 10.x-2 will be dropped from the web.
* Note that this PR must be merged **before** the 10.x tag in core is set to avoid a 404 for `latest`.
* Note before merging this PR, we should take care that 10.x-2 has all necessary changes merged.
@pako81 @jnweiger fyi
@mmattel @EParzefall @phil-davis
Post merging this, we need to backport all relevant changes to 10.x