From 85d919521843e48379d570f3bf68982498dec302 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Thu, 27 Sep 2018 06:17:56 -0700 Subject: [PATCH] Updated Creating a release (markdown) --- Creating-a-release.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Creating-a-release.md b/Creating-a-release.md index 3ef4567..f10f940 100644 --- a/Creating-a-release.md +++ b/Creating-a-release.md @@ -62,3 +62,29 @@ PATH=$PATH:$(pwd)/bin - **TIP:** Here is a real-life example of a commit that signifies a release: https://github.com/nim-lang/website/commit/6f95916dee1212dcf5465d74dcff14e01f714503. The draft blog post was created in earlier commits, but hopefully it's pretty easy to figure out how it was made. - **TIP2:** You can see what a draft post looks like by running `jekyll serve --drafts` inside the website's `jekyll` directory. - `git push live master` (the `live` remote is a strict secret) + +### Uploading docs + +- ``export NIM_VER=`` (for example ``export NIM_VER=0.19.0``). +- Upload documentation to ``/var/www/nim-lang.org/$NIM_VER`` +- Change ``docs`` symlink + - ``cd /var/www/nim-lang.org/`` + - ``ln -sfn $NIM_VER docs`` (change the version here) + - Verify this worked using ``ls -la | grep "docs"`` + +### Updating choosenim's channels + +Choosenim currently only supports gz so you will need to create a .tar.gz out of the .tar.xz: + +- ``export NIM_VER=`` +- ``cd /var/www/nim-lang.org/download`` +- ``cp nim-$NIM_VER.tar.xz nim-"$NIM_VER"_copy.tar.xz`` +- ``unxz nim-"$NIM_VER"_copy.tar.xz`` +- ``gzip --best nim-"$NIM_VER"_copy.tar`` +- ``mv nim-"$NIM_VER"_copy.tar.gz nim-"$NIM_VER".tar.gz`` +- ``sha256sum nim-"$NIM_VER".tar.gz > nim-"$NIM_VER".tar.gz.sha256`` + +Update the ``stable`` channel: + +- Update ``/var/www/nim-lang.org/channels`` using your favourite editor + - ``vim /var/www/nim-lang.org/channels/stable`` \ No newline at end of file