Merge pull request #1960 from nodiscc/doc-updte-release-branch

doc: update release procedure (merge the latest release to the release branch) + use the release branch for latest release version detection
This commit is contained in:
nodiscc 2023-03-20 17:23:34 +00:00 committed by GitHub
commit 9c9d6298bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@ public function index(Request $request, Response $response): Response
$releaseUrl = ApplicationUtils::$GITHUB_URL . '/releases/'; $releaseUrl = ApplicationUtils::$GITHUB_URL . '/releases/';
if ($this->container->conf->get('updates.check_updates', true)) { if ($this->container->conf->get('updates.check_updates', true)) {
$latestVersion = 'v' . ApplicationUtils::getVersion( $latestVersion = 'v' . ApplicationUtils::getVersion(
ApplicationUtils::$GIT_RAW_URL . '/latest/' . ApplicationUtils::$VERSION_FILE ApplicationUtils::$GIT_RAW_URL . '/release/' . ApplicationUtils::$VERSION_FILE
); );
$releaseUrl .= 'tag/' . $latestVersion; $releaseUrl .= 'tag/' . $latestVersion;
} else { } else {

View file

@ -438,7 +438,7 @@ public function updateMethodCheckUpdateRemoteBranch()
// Get latest branch major version digit // Get latest branch major version digit
$latestVersion = ApplicationUtils::getLatestGitVersionCode( $latestVersion = ApplicationUtils::getLatestGitVersionCode(
'https://raw.githubusercontent.com/shaarli/Shaarli/latest/shaarli_version.php', 'https://raw.githubusercontent.com/shaarli/Shaarli/release/shaarli_version.php',
5 5
); );
if (preg_match('/(\d+)\.\d+$/', $latestVersion, $matches) === false) { if (preg_match('/(\d+)\.\d+$/', $latestVersion, $matches) === false) {

View file

@ -139,16 +139,16 @@ make release_archive
This will create `shaarli-v0.x.y-full.tar`, `shaarli-v0.x.y-full.zip`. These archives need to be manually uploaded on the previously created GitHub [release](https://github.com/shaarli/Shaarli/releases). This will create `shaarli-v0.x.y-full.tar`, `shaarli-v0.x.y-full.zip`. These archives need to be manually uploaded on the previously created GitHub [release](https://github.com/shaarli/Shaarli/releases).
### Update the `latest` branch ### Update the `release` branch
```bash ```bash
# checkout the 'latest' branch # checkout the 'release' branch
git checkout latest git checkout release
# merge changes from your newly published release branch # merge changes from your newly published release branch
git merge v0.x.y git merge v0.x.y
# fix eventual conflicts with git mergetool... # fix eventual conflicts with git mergetool...
# run tests # run tests
make test make test
# push the latest branch # push the latest branch
git push upstream latest git push upstream release
``` ```