index.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. <!DOCTYPE html>
  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]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link rel="shortcut icon" href="../img/favicon.ico">
  9. <title>Release Shaarli - Shaarli Documentation</title>
  10. <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
  11. <link rel="stylesheet" href="../css/theme.css" type="text/css" />
  12. <link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
  13. <link rel="stylesheet" href="../css/highlight.css">
  14. <link href="../github-markdown.css" rel="stylesheet">
  15. <script>
  16. // Current page data
  17. var mkdocs_page_name = "Release Shaarli";
  18. var mkdocs_page_input_path = "Release-Shaarli.md";
  19. var mkdocs_page_url = "/Release-Shaarli/";
  20. </script>
  21. <script src="../js/jquery-2.1.1.min.js"></script>
  22. <script src="../js/modernizr-2.8.3.min.js"></script>
  23. <script type="text/javascript" src="../js/highlight.pack.js"></script>
  24. </head>
  25. <body class="wy-body-for-nav" role="document">
  26. <div class="wy-grid-for-nav">
  27. <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
  28. <div class="wy-side-nav-search">
  29. <a href=".." class="icon icon-home"> Shaarli Documentation</a>
  30. <div role="search">
  31. <form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
  32. <input type="text" name="q" placeholder="Search docs" />
  33. </form>
  34. </div>
  35. </div>
  36. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  37. <ul class="current">
  38. <li class="toctree-l1">
  39. <a class="" href="..">Home</a>
  40. </li>
  41. <li class="toctree-l1">
  42. <span class="caption-text">Setup</span>
  43. <ul class="subnav">
  44. <li class="">
  45. <a class="" href="../Download-and-Installation/">Download and Installation</a>
  46. </li>
  47. <li class="">
  48. <a class="" href="../Upgrade-and-migration/">Upgrade and migration</a>
  49. </li>
  50. <li class="">
  51. <a class="" href="../Server-requirements/">Server requirements</a>
  52. </li>
  53. <li class="">
  54. <a class="" href="../Server-configuration/">Server configuration</a>
  55. </li>
  56. <li class="">
  57. <a class="" href="../Server-security/">Server security</a>
  58. </li>
  59. <li class="">
  60. <a class="" href="../Shaarli-configuration/">Shaarli configuration</a>
  61. </li>
  62. <li class="">
  63. <a class="" href="../Plugins/">Plugins</a>
  64. </li>
  65. </ul>
  66. </li>
  67. <li class="toctree-l1">
  68. <span class="caption-text">Docker</span>
  69. <ul class="subnav">
  70. <li class="">
  71. <a class="" href="../docker/docker-101/">Docker 101</a>
  72. </li>
  73. <li class="">
  74. <a class="" href="../docker/shaarli-images/">Shaarli images</a>
  75. </li>
  76. <li class="">
  77. <a class="" href="../docker/reverse-proxy-configuration/">Reverse proxy configuration</a>
  78. </li>
  79. <li class="">
  80. <a class="" href="../docker/resources/">Docker resources</a>
  81. </li>
  82. </ul>
  83. </li>
  84. <li class="toctree-l1">
  85. <span class="caption-text">Usage</span>
  86. <ul class="subnav">
  87. <li class="">
  88. <a class="" href="../Features/">Features</a>
  89. </li>
  90. <li class="">
  91. <a class="" href="../Bookmarklet/">Bookmarklet</a>
  92. </li>
  93. <li class="">
  94. <a class="" href="../Browsing-and-searching/">Browsing and searching</a>
  95. </li>
  96. <li class="">
  97. <a class="" href="../Firefox-share/">Firefox share</a>
  98. </li>
  99. <li class="">
  100. <a class="" href="../RSS-feeds/">RSS feeds</a>
  101. </li>
  102. <li class="">
  103. <a class="" href="../REST-API/">REST API</a>
  104. </li>
  105. </ul>
  106. </li>
  107. <li class="toctree-l1">
  108. <span class="caption-text">How To</span>
  109. <ul class="subnav">
  110. <li class="">
  111. <a class="" href="../Backup,-restore,-import-and-export/">Backup, restore, import and export</a>
  112. </li>
  113. <li class="">
  114. <a class="" href="../Various-hacks/">Various hacks</a>
  115. </li>
  116. </ul>
  117. </li>
  118. <li class="toctree-l1">
  119. <a class="" href="../Troubleshooting/">Troubleshooting</a>
  120. </li>
  121. <li class="toctree-l1">
  122. <span class="caption-text">Development</span>
  123. <ul class="subnav">
  124. <li class="">
  125. <a class="" href="../Development-guidelines/">Development guidelines</a>
  126. </li>
  127. <li class="">
  128. <a class="" href="../Continuous-integration-tools/">Continuous integration tools</a>
  129. </li>
  130. <li class="">
  131. <a class="" href="../GnuPG-signature/">GnuPG signature</a>
  132. </li>
  133. <li class="">
  134. <a class="" href="../Coding-guidelines/">Coding guidelines</a>
  135. </li>
  136. <li class="">
  137. <a class="" href="../Directory-structure/">Directory structure</a>
  138. </li>
  139. <li class="">
  140. <a class="" href="../3rd-party-libraries/">3rd party libraries</a>
  141. </li>
  142. <li class="">
  143. <a class="" href="../Plugin-System/">Plugin System</a>
  144. </li>
  145. <li class=" current">
  146. <a class="current" href="./">Release Shaarli</a>
  147. <ul class="subnav">
  148. <li class="toctree-l3"><a href="#prerequisites">Prerequisites</a></li>
  149. <li class="toctree-l3"><a href="#github-release-draft-and-changelogmd">GitHub release draft and CHANGELOG.md</a></li>
  150. <ul>
  151. <li><a class="toctree-l4" href="#github-release-draft">GitHub release draft</a></li>
  152. <li><a class="toctree-l4" href="#changelogmd">CHANGELOG.md</a></li>
  153. </ul>
  154. <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>
  155. <ul>
  156. <li><a class="toctree-l4" href="#generate-documentation">Generate documentation</a></li>
  157. <li><a class="toctree-l4" href="#create-and-merge-a-pull-request">Create and merge a Pull Request</a></li>
  158. <li><a class="toctree-l4" href="#bump-shaarli-version-to-v0x-branch">Bump Shaarli version to v0.x branch</a></li>
  159. <li><a class="toctree-l4" href="#create-and-push-a-signed-tag">Create and push a signed tag</a></li>
  160. <li><a class="toctree-l4" href="#verify-a-signed-tag">Verify a signed tag</a></li>
  161. </ul>
  162. <li class="toctree-l3"><a href="#publish-the-github-release">Publish the GitHub release</a></li>
  163. <ul>
  164. <li><a class="toctree-l4" href="#update-release-badges">Update release badges</a></li>
  165. <li><a class="toctree-l4" href="#create-a-github-release-from-a-git-tag">Create a GitHub release from a Git tag</a></li>
  166. <li><a class="toctree-l4" href="#generate-and-upload-all-in-one-release-archives">Generate and upload all-in-one release archives</a></li>
  167. <li><a class="toctree-l4" href="#update-stable-and-latest-branches">Update stable and latest branches</a></li>
  168. </ul>
  169. </ul>
  170. </li>
  171. <li class="">
  172. <a class="" href="../Versioning-and-Branches/">Versioning and Branches</a>
  173. </li>
  174. <li class="">
  175. <a class="" href="../Security/">Security</a>
  176. </li>
  177. <li class="">
  178. <a class="" href="../Static-analysis/">Static analysis</a>
  179. </li>
  180. <li class="">
  181. <a class="" href="../Theming/">Theming</a>
  182. </li>
  183. <li class="">
  184. <a class="" href="../Unit-tests/">Unit tests</a>
  185. </li>
  186. </ul>
  187. </li>
  188. <li class="toctree-l1">
  189. <span class="caption-text">About</span>
  190. <ul class="subnav">
  191. <li class="">
  192. <a class="" href="../FAQ/">FAQ</a>
  193. </li>
  194. <li class="">
  195. <a class="" href="../Community-&-Related-software/">Community & Related software</a>
  196. </li>
  197. </ul>
  198. </li>
  199. </ul>
  200. </div>
  201. &nbsp;
  202. </nav>
  203. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  204. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  205. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  206. <a href="..">Shaarli Documentation</a>
  207. </nav>
  208. <div class="wy-nav-content">
  209. <div class="rst-content">
  210. <div role="navigation" aria-label="breadcrumbs navigation">
  211. <ul class="wy-breadcrumbs">
  212. <li><a href="..">Docs</a> &raquo;</li>
  213. <li>Development &raquo;</li>
  214. <li>Release Shaarli</li>
  215. <li class="wy-breadcrumbs-aside">
  216. <a href="https://github.com/shaarli/Shaarli/edit/master/docs/Release-Shaarli.md"
  217. class="icon icon-github"> Edit on GitHub</a>
  218. </li>
  219. </ul>
  220. <hr/>
  221. </div>
  222. <div role="main">
  223. <div class="section">
  224. <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
  225. releases</a>.</p>
  226. <h2 id="prerequisites">Prerequisites</h2>
  227. <p>This guide assumes that you have:
  228. - a GPG key matching your GitHub authentication credentials
  229. - i.e., the email address identified by the GPG key is the same as the one in your <code>~/.gitconfig</code>
  230. - a GitHub fork of Shaarli
  231. - a local clone of your Shaarli fork, with the following remotes:
  232. - <code>origin</code> pointing to your GitHub fork
  233. - <code>upstream</code> pointing to the main Shaarli repository
  234. - maintainer permissions on the main Shaarli repository, to:
  235. - push the signed tag
  236. - create a new release
  237. - <a href="https://getcomposer.org/">Composer</a> needs to be installed
  238. - The <a href="https://docs.python.org/3/library/venv.html">venv</a> Python 3 module needs to be installed for HTML documentation generation.</p>
  239. <h2 id="github-release-draft-and-changelogmd">GitHub release draft and <code>CHANGELOG.md</code></h2>
  240. <p>See http://keepachangelog.com/en/0.3.0/ for changelog formatting.</p>
  241. <h3 id="github-release-draft">GitHub release draft</h3>
  242. <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>
  243. <h3 id="changelogmd"><code>CHANGELOG.md</code></h3>
  244. <p>This file should contain the same information as the release note draft for the upcoming version.</p>
  245. <p>Update it to:
  246. - add new entries (additions, fixes, etc.)
  247. - mark the current version as released by setting its date and link
  248. - add a new section for the future unreleased version</p>
  249. <pre><code class="bash">$ cd /path/to/shaarli
  250. $ nano CHANGELOG.md
  251. [...]
  252. ## vA.B.C - UNRELEASED
  253. TBA
  254. ## [vX.Y.Z](https://github.com/shaarli/Shaarli/releases/tag/vX.Y.Z) - YYYY-MM-DD
  255. [...]
  256. </code></pre>
  257. <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>
  258. <h3 id="generate-documentation">Generate documentation</h3>
  259. <pre><code class="bash">$ cd /path/to/shaarli
  260. # create a new branch
  261. $ git fetch upstream
  262. $ git checkout upstream/master -b v0.5.0
  263. # rebuild the HTML documentation from Markdown
  264. $ make htmlpages
  265. # commit the changes
  266. $ git add doc
  267. $ git commit -s -m &quot;Generate documentation for v0.5.0&quot;
  268. # push the commit on your GitHub fork
  269. $ git push origin v0.5.0
  270. </code></pre>
  271. <h3 id="create-and-merge-a-pull-request">Create and merge a Pull Request</h3>
  272. <p>This one is pretty straightforward ;-)</p>
  273. <h3 id="bump-shaarli-version-to-v0x-branch">Bump Shaarli version to v0.x branch</h3>
  274. <pre><code>$ git checkout master
  275. $ git fetch upstream
  276. $ git pull upstream master
  277. # IF the branch doesn't exists
  278. $ git checkout -b v0.5
  279. # OR if the branch already exists
  280. $ git checkout v0.5
  281. $ git rebase upstream/master
  282. # Bump shaarli version from dev to 0.5.0, **without the `v`**
  283. $ vim shaarli_version.php
  284. $ git add shaarli_version
  285. $ git commit -s -m &quot;Bump Shaarli version to v0.5.0&quot;
  286. $ git push upstream v0.5
  287. </code></pre>
  288. <h3 id="create-and-push-a-signed-tag">Create and push a signed tag</h3>
  289. <pre><code class="bash"># update your local copy
  290. $ git checkout v0.5
  291. $ git fetch upstream
  292. $ git pull upstream v0.5
  293. # create a signed tag
  294. $ git tag -s -m &quot;Release v0.5.0&quot; v0.5.0
  295. # push it to &quot;upstream&quot;
  296. $ git push --tags upstream
  297. </code></pre>
  298. <h3 id="verify-a-signed-tag">Verify a signed tag</h3>
  299. <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>
  300. <p>Let's have a look at its signature!</p>
  301. <pre><code class="bash">$ cd /path/to/shaarli
  302. $ git fetch upstream
  303. # get the SHA1 reference of the tag
  304. $ git show-ref tags/v0.5.0
  305. f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0
  306. # verify the tag signature information
  307. $ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1
  308. gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F
  309. gpg: Good signature from &quot;VirtualTam &lt;virtualtam@flibidi.net&gt;&quot; [ultimate]
  310. </code></pre>
  311. <h2 id="publish-the-github-release">Publish the GitHub release</h2>
  312. <h3 id="update-release-badges">Update release badges</h3>
  313. <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>
  314. <h3 id="create-a-github-release-from-a-git-tag">Create a GitHub release from a Git tag</h3>
  315. <p>From the previously drafted release:
  316. - edit the release notes (if needed)
  317. - specify the appropriate Git tag
  318. - publish the release
  319. - profit!</p>
  320. <h3 id="generate-and-upload-all-in-one-release-archives">Generate and upload all-in-one release archives</h3>
  321. <p>Users with a shared hosting may have:
  322. - no SSH access
  323. - no possibility to install PHP packages or server extensions
  324. - no possibility to run scripts</p>
  325. <p>To ease Shaarli installations, it is possible to generate and upload additional release archives,
  326. that will contain Shaarli code plus all required third-party libraries.</p>
  327. <p><strong>From the <code>v0.5</code> branch:</strong></p>
  328. <pre><code class="bash">$ make release_archive
  329. </code></pre>
  330. <p>This will create the following archives:
  331. - <code>shaarli-vX.Y.Z-full.tar</code>
  332. - <code>shaarli-vX.Y.Z-full.zip</code></p>
  333. <p>The archives need to be manually uploaded on the previously created GitHub release.</p>
  334. <h3 id="update-stable-and-latest-branches">Update <code>stable</code> and <code>latest</code> branches</h3>
  335. <pre><code>$ git checkout latest
  336. # latest release
  337. $ git merge v0.5.0
  338. # fix eventual conflicts
  339. $ make test
  340. $ git push upstream latest
  341. $ git checkout stable
  342. # latest previous major
  343. $ git merge v0.4.5
  344. # fix eventual conflicts
  345. $ make test
  346. $ git push upstream stable
  347. </code></pre>
  348. </div>
  349. </div>
  350. <footer>
  351. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  352. <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>
  353. <a href="../Plugin-System/" class="btn btn-neutral" title="Plugin System"><span class="icon icon-circle-arrow-left"></span> Previous</a>
  354. </div>
  355. <hr/>
  356. <div role="contentinfo">
  357. <!-- Copyright etc -->
  358. </div>
  359. 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>.
  360. </footer>
  361. </div>
  362. </div>
  363. </section>
  364. </div>
  365. <div class="rst-versions" role="note" style="cursor: pointer">
  366. <span class="rst-current-version" data-toggle="rst-current-version">
  367. <a href="https://github.com/shaarli/Shaarli" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
  368. <span><a href="../Plugin-System/" style="color: #fcfcfc;">&laquo; Previous</a></span>
  369. <span style="margin-left: 15px"><a href="../Versioning-and-Branches/" style="color: #fcfcfc">Next &raquo;</a></span>
  370. </span>
  371. </div>
  372. <script src="../js/theme.js"></script>
  373. </body>
  374. </html>