Skip to content

Commit

Permalink
Merge pull request #2001 from alphagov/add-documentation-about-deploying
Browse files Browse the repository at this point in the history
Add documentation about deploying
  • Loading branch information
chrisroos committed Oct 13, 2015
2 parents 5b224f9 + 3a46819 commit dcd499e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -14,6 +14,7 @@ Read more in [a blog post](https://gds.blog.gov.uk/2012/02/16/smart-answers-are-
* Process
* [Archiving a Smart Answer](doc/archiving.md)
* [Deploying changes for Factcheck](doc/factcheck.md)
* [Deploying to production](doc/deploying.md)
* [Merging pull requests from the content team](doc/merging-content-prs.md)
* Development
* Adding [content-ids](doc/content-ids.md) to Smart Answers.
Expand Down
53 changes: 53 additions & 0 deletions doc/deploying.md
@@ -0,0 +1,53 @@
## Create the Release in GitHub

### 1. Find the latest release

Open the [list of releases][smart-answers-releases] and make a note of the name of the most recent release (referred to as `$RELEASE-TAG` below).

#### NOTE. Jenkins and releases

After a successful build of the master branch on Jenkins:

* Jenkins updates the `release` branch to point at HEAD
* Jenkins creates a `release_nnnn` tag pointing at HEAD


### 2. Review the changes waiting to be deployed to production

Open "https://github.com/alphagov/smart-answers/compare/deployed-to-production...$RELEASE-TAG".

Open each of the merged Pull Requests that are waiting to be deployed and ensure that the description contains details of the expected changes.


### 3. Update the latest release on GitHub

Open "https://github.com/alphagov/smart-answers/releases/tag/$RELEASE-TAG".

Click "Edit release".

Leave the "Release title" blank.

Set the description to:

```
## Changes to deploy
https://github.com/alphagov/smart-answers/compare/deployed-to-production...$RELEASE-TAG
## Main changes
TODO: List each of the Pull Requests that contain user facing changes here, for example:
* https://github.com/alphagov/smart-answers/pull/nnn - <title-of-pull-request>
```

## Create the deployment calendar event

1. Add an event to the "GOVUK Release Calender"

* Title: "Smart Answers (2nd line required)"
* Time: <The time you'd like to deploy>
* Duration: 30 minutes
* Description: https://github.com/alphagov/smart-answers/releases/tag/$RELEASE-TAG

[smart-answers-releases]: https://github.com/alphagov/smart-answers/releases

0 comments on commit dcd499e

Please sign in to comment.