From a86bbf356c7ab8064e6dff7c310dd4bdf6485c65 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 26 Sep 2017 12:03:52 +0200 Subject: [PATCH 1/6] Add an HOWTO for releasing Gitea In the hope it'll be useful for as a policy for the future --- HOWTO_RELEASE.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 HOWTO_RELEASE.md diff --git a/HOWTO_RELEASE.md b/HOWTO_RELEASE.md new file mode 100644 index 000000000..b9d6d2ca8 --- /dev/null +++ b/HOWTO_RELEASE.md @@ -0,0 +1,14 @@ +Release procedure is as follows: + +- Let $vmaj, $vmin and $vpat be Major, Minor and Patch version numbers +- Drop "dev" suffix from $vpat +- Let $ver be "$vmaj.$vmin.$vpat" +- Make sure Version`variable is set correctly in main.go ($ver) +- Compile CHANGELOG.md section for $ver + (please only include user-relevant changes, and be concise) +- git tag -a v$ver +- If this is a .0 release: + - git branch release/v$vmaj.$vmin + - Update Version in new branch ( vpat++ ) +- Update Version in master branch ( vmin++; vpat=0-dev ) +- Send PR to https://github.com/go-gitea/blog announcing the release From c641e77c18887d5f03f98414edf81fb7d6d405e3 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 11 Oct 2017 18:29:04 +0200 Subject: [PATCH 2/6] Drop rouge backtick --- HOWTO_RELEASE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HOWTO_RELEASE.md b/HOWTO_RELEASE.md index b9d6d2ca8..12694ed9a 100644 --- a/HOWTO_RELEASE.md +++ b/HOWTO_RELEASE.md @@ -3,7 +3,7 @@ Release procedure is as follows: - Let $vmaj, $vmin and $vpat be Major, Minor and Patch version numbers - Drop "dev" suffix from $vpat - Let $ver be "$vmaj.$vmin.$vpat" -- Make sure Version`variable is set correctly in main.go ($ver) +- Make sure Version variable is set correctly in main.go ($ver) - Compile CHANGELOG.md section for $ver (please only include user-relevant changes, and be concise) - git tag -a v$ver From 9d5cfdc719bb8c638f68ba3e54e8416c0d5e2044 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 11 Oct 2017 18:30:13 +0200 Subject: [PATCH 3/6] Quote code --- HOWTO_RELEASE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HOWTO_RELEASE.md b/HOWTO_RELEASE.md index 12694ed9a..fb39a70ef 100644 --- a/HOWTO_RELEASE.md +++ b/HOWTO_RELEASE.md @@ -6,9 +6,9 @@ Release procedure is as follows: - Make sure Version variable is set correctly in main.go ($ver) - Compile CHANGELOG.md section for $ver (please only include user-relevant changes, and be concise) -- git tag -a v$ver +- `git tag -a v$ver` - If this is a .0 release: - - git branch release/v$vmaj.$vmin + - `git branch release/v$vmaj.$vmin` - Update Version in new branch ( vpat++ ) - Update Version in master branch ( vmin++; vpat=0-dev ) - Send PR to https://github.com/go-gitea/blog announcing the release From 176f1c874d8b3d7e3493b36c8ed929c824ce86bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Sat, 21 Oct 2017 19:30:03 +0200 Subject: [PATCH 4/6] Clarify releases in HOWTO_RELEASE.md --- HOWTO_RELEASE.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HOWTO_RELEASE.md b/HOWTO_RELEASE.md index fb39a70ef..ceeeb81d9 100644 --- a/HOWTO_RELEASE.md +++ b/HOWTO_RELEASE.md @@ -6,9 +6,13 @@ Release procedure is as follows: - Make sure Version variable is set correctly in main.go ($ver) - Compile CHANGELOG.md section for $ver (please only include user-relevant changes, and be concise) +- Commit and push the changelog on both `master` and `release/v$vmaj.$vmin` +- Create PR for changelog - `git tag -a v$ver` - If this is a .0 release: - `git branch release/v$vmaj.$vmin` - Update Version in new branch ( vpat++ ) - Update Version in master branch ( vmin++; vpat=0-dev ) +- Push the branches and tags (`git push --tags`) + - No need to create the Release. CI does that automatically. - Send PR to https://github.com/go-gitea/blog announcing the release From fe1e61e4d49cd1eb542bf14058f33fa8a682f654 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 3 Dec 2017 14:18:26 +0100 Subject: [PATCH 5/6] Add header --- HOWTO_RELEASE.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HOWTO_RELEASE.md b/HOWTO_RELEASE.md index ceeeb81d9..619c5e2d4 100644 --- a/HOWTO_RELEASE.md +++ b/HOWTO_RELEASE.md @@ -1,3 +1,6 @@ +# Releasing Gitea + + Release procedure is as follows: - Let $vmaj, $vmin and $vpat be Major, Minor and Patch version numbers From 4fe0c19e1e7a7415d21884436dd377f32b576ee7 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 8 Jan 2018 23:17:35 +0100 Subject: [PATCH 6/6] Add update of install-from-binary* step --- HOWTO_RELEASE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/HOWTO_RELEASE.md b/HOWTO_RELEASE.md index 619c5e2d4..45aa2c9d4 100644 --- a/HOWTO_RELEASE.md +++ b/HOWTO_RELEASE.md @@ -19,3 +19,4 @@ Release procedure is as follows: - Push the branches and tags (`git push --tags`) - No need to create the Release. CI does that automatically. - Send PR to https://github.com/go-gitea/blog announcing the release +- Update latest release number in `docs/content/doc/installation/from-binary*.md`