2 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
3 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge">
7 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
10 <link rel=
"shortcut icon" href=
"../img/favicon.ico">
11 <title>Release Shaarli - Shaarli Documentation
</title>
12 <link href='https://fonts.googleapis.com/css?family=Lato:
400,
700|Roboto+Slab:
400,
700|Inconsolata:
400,
700' rel='stylesheet' type='text/css'
>
14 <link rel=
"stylesheet" href=
"../css/theme.css" type=
"text/css" />
15 <link rel=
"stylesheet" href=
"../css/theme_extra.css" type=
"text/css" />
16 <link rel=
"stylesheet" href=
"../css/highlight.css">
17 <link href=
"../github-markdown.css" rel=
"stylesheet">
21 var mkdocs_page_name = "Release Shaarli";
22 var mkdocs_page_input_path = "Release-Shaarli.md";
23 var mkdocs_page_url = "/Release-Shaarli/";
26 <script src=
"../js/jquery-2.1.1.min.js"></script>
27 <script src=
"../js/modernizr-2.8.3.min.js"></script>
28 <script type=
"text/javascript" src=
"../js/highlight.pack.js"></script>
32 <body class=
"wy-body-for-nav" role=
"document">
34 <div class=
"wy-grid-for-nav">
37 <nav data-toggle=
"wy-nav-shift" class=
"wy-nav-side stickynav">
38 <div class=
"wy-side-nav-search">
39 <a href=
".." class=
"icon icon-home"> Shaarli Documentation
</a>
41 <form id =
"rtd-search-form" class=
"wy-form" action=
"../search.html" method=
"get">
42 <input type=
"text" name=
"q" placeholder=
"Search docs" />
47 <div class=
"wy-menu wy-menu-vertical" data-spy=
"affix" role=
"navigation" aria-label=
"main navigation">
51 <li class=
"toctree-l1">
53 <a class=
"" href=
"..">Home
</a>
56 <li class=
"toctree-l1">
58 <span class=
"caption-text">Setup
</span>
62 <a class=
"" href=
"../Download-and-Installation/">Download and Installation
</a>
66 <a class=
"" href=
"../Upgrade-and-migration/">Upgrade and migration
</a>
70 <a class=
"" href=
"../Server-requirements/">Server requirements
</a>
74 <a class=
"" href=
"../Server-configuration/">Server configuration
</a>
78 <a class=
"" href=
"../Server-security/">Server security
</a>
82 <a class=
"" href=
"../Shaarli-configuration/">Shaarli configuration
</a>
86 <a class=
"" href=
"../Plugins/">Plugins
</a>
91 <li class=
"toctree-l1">
93 <span class=
"caption-text">Docker
</span>
97 <a class=
"" href=
"../Docker-101/">Docker
101</a>
101 <a class=
"" href=
"../Shaarli-images/">Shaarli images
</a>
105 <a class=
"" href=
"../Reverse-proxy-configuration/">Reverse proxy configuration
</a>
109 <a class=
"" href=
"../Docker-resources/">Docker resources
</a>
114 <li class=
"toctree-l1">
116 <span class=
"caption-text">Usage
</span>
120 <a class=
"" href=
"../Features/">Features
</a>
124 <a class=
"" href=
"../Bookmarklet/">Bookmarklet
</a>
128 <a class=
"" href=
"../Browsing-and-searching/">Browsing and searching
</a>
132 <a class=
"" href=
"../Firefox-share/">Firefox share
</a>
136 <a class=
"" href=
"../RSS-feeds/">RSS feeds
</a>
140 <a class=
"" href=
"../REST-API/">REST API
</a>
145 <li class=
"toctree-l1">
147 <span class=
"caption-text">How To
</span>
151 <a class=
"" href=
"../Backup,-restore,-import-and-export/">Backup, restore, import and export
</a>
155 <a class=
"" href=
"../Copy-an-existing-installation-over-SSH-and-serve-it-locally/">Copy an existing installation over SSH and serve it locally
</a>
159 <a class=
"" href=
"../Create-and-serve-multiple-Shaarlis-(farm)/">Create and serve multiple Shaarlis (farm)
</a>
163 <a class=
"" href=
"../Download-CSS-styles-from-an-OPML-list/">Download CSS styles from an OPML list
</a>
167 <a class=
"" href=
"../Datastore-hacks/">Datastore hacks
</a>
172 <li class=
"toctree-l1">
174 <a class=
"" href=
"../Troubleshooting/">Troubleshooting
</a>
177 <li class=
"toctree-l1">
179 <span class=
"caption-text">Development
</span>
183 <a class=
"" href=
"../Development-guidelines/">Development guidelines
</a>
187 <a class=
"" href=
"../Continuous-integration-tools/">Continuous integration tools
</a>
191 <a class=
"" href=
"../GnuPG-signature/">GnuPG signature
</a>
195 <a class=
"" href=
"../Coding-guidelines/">Coding guidelines
</a>
199 <a class=
"" href=
"../Directory-structure/">Directory structure
</a>
203 <a class=
"" href=
"../3rd-party-libraries/">3rd party libraries
</a>
207 <a class=
"" href=
"../Plugin-System/">Plugin System
</a>
209 <li class=
" current">
211 <a class=
"current" href=
"./">Release Shaarli
</a>
214 <li class=
"toctree-l3"><a href=
"#prerequisites">Prerequisites
</a></li>
217 <li class=
"toctree-l3"><a href=
"#github-release-draft-and-changelogmd">GitHub release draft and CHANGELOG.md
</a></li>
221 <li><a class=
"toctree-l4" href=
"#github-release-draft">GitHub release draft
</a></li>
223 <li><a class=
"toctree-l4" href=
"#changelogmd">CHANGELOG.md
</a></li>
228 <li class=
"toctree-l3"><a href=
"#increment-the-version-code-updated-docs-create-and-push-a-signed-tag">Increment the version code, updated docs, create and push a signed tag
</a></li>
232 <li><a class=
"toctree-l4" href=
"#generate-documentation">Generate documentation
</a></li>
234 <li><a class=
"toctree-l4" href=
"#create-and-merge-a-pull-request">Create and merge a Pull Request
</a></li>
236 <li><a class=
"toctree-l4" href=
"#bump-shaarli-version-to-v0x-branch">Bump Shaarli version to v0.x branch
</a></li>
238 <li><a class=
"toctree-l4" href=
"#create-and-push-a-signed-tag">Create and push a signed tag
</a></li>
240 <li><a class=
"toctree-l4" href=
"#verify-a-signed-tag">Verify a signed tag
</a></li>
245 <li class=
"toctree-l3"><a href=
"#publish-the-github-release">Publish the GitHub release
</a></li>
249 <li><a class=
"toctree-l4" href=
"#update-release-badges">Update release badges
</a></li>
251 <li><a class=
"toctree-l4" href=
"#create-a-github-release-from-a-git-tag">Create a GitHub release from a Git tag
</a></li>
253 <li><a class=
"toctree-l4" href=
"#generate-and-upload-all-in-one-release-archives">Generate and upload all-in-one release archives
</a></li>
255 <li><a class=
"toctree-l4" href=
"#update-stable-and-latest-branches">Update stable and latest branches
</a></li>
264 <a class=
"" href=
"../Versioning-and-Branches/">Versioning and Branches
</a>
268 <a class=
"" href=
"../Security/">Security
</a>
272 <a class=
"" href=
"../Static-analysis/">Static analysis
</a>
276 <a class=
"" href=
"../Theming/">Theming
</a>
280 <a class=
"" href=
"../Unit-tests/">Unit tests
</a>
285 <li class=
"toctree-l1">
287 <span class=
"caption-text">About
</span>
291 <a class=
"" href=
"../FAQ/">FAQ
</a>
295 <a class=
"" href=
"../Community-&-Related-software/">Community & Related software
</a>
305 <section data-toggle=
"wy-nav-shift" class=
"wy-nav-content-wrap">
308 <nav class=
"wy-nav-top" role=
"navigation" aria-label=
"top navigation">
309 <i data-toggle=
"wy-nav-top" class=
"fa fa-bars"></i>
310 <a href=
"..">Shaarli Documentation
</a>
314 <div class=
"wy-nav-content">
315 <div class=
"rst-content">
316 <div role=
"navigation" aria-label=
"breadcrumbs navigation">
317 <ul class=
"wy-breadcrumbs">
318 <li><a href=
"..">Docs
</a> »</li>
322 <li>Development
»</li>
326 <li>Release Shaarli
</li>
327 <li class=
"wy-breadcrumbs-aside">
329 <a href=
"https://github.com/shaarli/Shaarli/edit/master/docs/Release-Shaarli.md"
330 class=
"icon icon-github"> Edit on GitHub
</a>
337 <div class=
"section">
339 <p>See
<a href=
"http://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project#Tagging-Your-Releases">Git - Maintaining a project - Tagging your
341 <h2 id=
"prerequisites">Prerequisites
</h2>
342 <p>This guide assumes that you have:
343 - a GPG key matching your GitHub authentication credentials
344 - i.e., the email address identified by the GPG key is the same as the one in your
<code>~/.gitconfig
</code>
345 - a GitHub fork of Shaarli
346 - a local clone of your Shaarli fork, with the following remotes:
347 -
<code>origin
</code> pointing to your GitHub fork
348 -
<code>upstream
</code> pointing to the main Shaarli repository
349 - maintainer permissions on the main Shaarli repository, to:
350 - push the signed tag
351 - create a new release
352 -
<a href=
"https://getcomposer.org/">Composer
</a> and
<a href=
"http://pandoc.org/">Pandoc
</a> need to be installed
</p>
353 <h2 id=
"github-release-draft-and-changelogmd">GitHub release draft and
<code>CHANGELOG.md
</code></h2>
354 <p>See http://keepachangelog.com/en/
0.3.0/ for changelog formatting.
</p>
355 <h3 id=
"github-release-draft">GitHub release draft
</h3>
356 <p>GitHub allows drafting the release note for the upcoming release, from the
<a href=
"https://github.com/shaarli/Shaarli/releases">Releases
</a> page. This way, the release note can be drafted while contributions are merged to
<code>master
</code>.
</p>
357 <h3 id=
"changelogmd"><code>CHANGELOG.md
</code></h3>
358 <p>This file should contain the same information as the release note draft for the upcoming version.
</p>
360 - add new entries (additions, fixes, etc.)
361 - mark the current version as released by setting its date and link
362 - add a new section for the future unreleased version
</p>
363 <pre><code class=
"bash">$ cd /path/to/shaarli
368 ## vA.B.C - UNRELEASED
371 ## [vX.Y.Z](https://github.com/shaarli/Shaarli/releases/tag/vX.Y.Z) - YYYY-MM-DD
375 <h2 id=
"increment-the-version-code-updated-docs-create-and-push-a-signed-tag">Increment the version code, updated docs, create and push a signed tag
</h2>
376 <h3 id=
"generate-documentation">Generate documentation
</h3>
377 <pre><code class=
"bash">$ cd /path/to/shaarli
379 # create a new branch
381 $ git checkout upstream/master -b v0.5
.0
383 # rebuild the documentation from the wiki
388 $ git commit -s -m
"Generate documentation for v0.5
.0"
390 # push the commit on your GitHub fork
391 $ git push origin v0.5
.0
394 <h3 id=
"create-and-merge-a-pull-request">Create and merge a Pull Request
</h3>
395 <p>This one is pretty straightforward ;-)
</p>
396 <h3 id=
"bump-shaarli-version-to-v0x-branch">Bump Shaarli version to v0.x branch
</h3>
397 <pre><code>$ git checkout master
399 $ git pull upstream master
401 # IF the branch doesn't exists
402 $ git checkout -b v0.5
403 # OR if the branch already exists
405 $ git rebase upstream/master
407 # Bump shaarli version from dev to
0.5.0, **without the `v`**
408 $ vim shaarli_version.php
409 $ git add shaarli_version
410 $ git commit -s -m
"Bump Shaarli version to v0.5
.0"
411 $ git push upstream v0.5
414 <h3 id=
"create-and-push-a-signed-tag">Create and push a signed tag
</h3>
415 <pre><code class=
"bash"># update your local copy
418 $ git pull upstream v0.5
420 # create a signed tag
421 $ git tag -s -m
"Release v0.5
.0" v0.5
.0
423 # push it to
"upstream
"
424 $ git push --tags upstream
427 <h3 id=
"verify-a-signed-tag">Verify a signed tag
</h3>
428 <p><a href=
"https://github.com/shaarli/Shaarli/releases/tag/v0.5.0"><code>v0.5
.0</code></a> is the first GPG-signed tag pushed on the Community Shaarli.
</p>
429 <p>Let's have a look at its signature!
</p>
430 <pre><code class=
"bash">$ cd /path/to/shaarli
433 # get the SHA1 reference of the tag
434 $ git show-ref tags/v0.5
.0
435 f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5
.0
437 # verify the tag signature information
438 $ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1
439 gpg: Signature made Thu
30 Jul
2015 11:
46:
34 CEST using RSA key ID
4100DF6F
440 gpg: Good signature from
"VirtualTam
<virtualtam@flibidi.net
>" [ultimate]
443 <h2 id=
"publish-the-github-release">Publish the GitHub release
</h2>
444 <h3 id=
"update-release-badges">Update release badges
</h3>
445 <p>Update
<code>README.md
</code> so version badges display and point to the newly released Shaarli version(s), in the
<code>master
</code> branch.
</p>
446 <h3 id=
"create-a-github-release-from-a-git-tag">Create a GitHub release from a Git tag
</h3>
447 <p>From the previously drafted release:
448 - edit the release notes (if needed)
449 - specify the appropriate Git tag
450 - publish the release
452 <h3 id=
"generate-and-upload-all-in-one-release-archives">Generate and upload all-in-one release archives
</h3>
453 <p>Users with a shared hosting may have:
455 - no possibility to install PHP packages or server extensions
456 - no possibility to run scripts
</p>
457 <p>To ease Shaarli installations, it is possible to generate and upload additional release archives,
458 that will contain Shaarli code plus all required third-party libraries.
</p>
459 <p><strong>From the
<code>v0.5
</code> branch:
</strong></p>
460 <pre><code class=
"bash">$ make release_archive
463 <p>This will create the following archives:
464 -
<code>shaarli-vX.Y.Z-full.tar
</code>
465 -
<code>shaarli-vX.Y.Z-full.zip
</code></p>
466 <p>The archives need to be manually uploaded on the previously created GitHub release.
</p>
467 <h3 id=
"update-stable-and-latest-branches">Update
<code>stable
</code> and
<code>latest
</code> branches
</h3>
468 <pre><code>$ git checkout latest
471 # fix eventual conflicts
473 $ git push upstream latest
474 $ git checkout stable
475 # latest previous major
477 # fix eventual conflicts
479 $ git push upstream stable
486 <div class=
"rst-footer-buttons" role=
"navigation" aria-label=
"footer navigation">
488 <a href=
"../Versioning-and-Branches/" class=
"btn btn-neutral float-right" title=
"Versioning and Branches">Next
<span class=
"icon icon-circle-arrow-right"></span></a>
491 <a href=
"../Plugin-System/" class=
"btn btn-neutral" title=
"Plugin System"><span class=
"icon icon-circle-arrow-left"></span> Previous
</a>
498 <div role=
"contentinfo">
499 <!-- Copyright etc -->
503 Built with
<a href=
"http://www.mkdocs.org">MkDocs
</a> using a
<a href=
"https://github.com/snide/sphinx_rtd_theme">theme
</a> provided by
<a href=
"https://readthedocs.org">Read the Docs
</a>.
513 <div class=
"rst-versions" role=
"note" style=
"cursor: pointer">
514 <span class=
"rst-current-version" data-toggle=
"rst-current-version">
516 <a href=
"https://github.com/shaarli/Shaarli" class=
"fa fa-github" style=
"float: left; color: #fcfcfc"> GitHub
</a>
519 <span><a href=
"../Plugin-System/" style=
"color: #fcfcfc;">« Previous
</a></span>
522 <span style=
"margin-left: 15px"><a href=
"../Versioning-and-Branches/" style=
"color: #fcfcfc">Next
»</a></span>
526 <script src=
"../js/theme.js"></script>