
## To prepare the release:

Add release notes to 

* website/history.html

Update the version number in

* README.md
* README.txt
* build.xml
* website/index.html
* website/history.html

## To push a new release to Maven Central:

[Generic instructions](https://central.sonatype.org/pages/manual-staging-bundle-creation-and-deployment.html)

1. git checkout master
2. git pull
3. ant clean
5. ant maven2
6. cd dist/maven2
7. Sign the files:

  ```
  $ gpg -ab xom-1.3.6.pom
  $ gpg -ab xom-1.3.6.jar
  $ gpg -ab xom-1.3.6-javadoc.jar
  $ gpg -ab xom-1.3.6-sources.jar
  ```

8. `$ jar -cvf bundle.jar xom-1.3.6.pom xom-1.3.6.pom.asc xom-1.3.6.jar xom-1.3.6.jar.asc xom-1.3.6-javadoc.jar xom-1.3.6-javadoc.jar.asc xom-1.3.6-sources.jar xom-1.3.6-sources.jar.asc`

9. Login to [oss.sonatype.org](https://oss.sonatype.org/#welcome).

10. Select staging upload in the left hand column.

11. Upload Mode: Artifact Bundle

12. Select xom/dist/maven2/bundle.jar and press **Upload Bundle**. If bundle.jar doesn't work, try individual artifacts instead. 

13. Select staging repositories in the left hand side.

14. Scroll to the bottom and find the bundle you just uploaded. Select it.

15. Close the repository. Wait.

16. Release the repository.

17. Tag the release on github.

18. Update README.md with the new version number.

## To update the website:

1. sftp the files to IBiblio including the assorted jar and zip files

2. ant website

3. cd dist/website

4. Use gcloud to push to xom.nu with the elharodotcom credentials:

    `~/xom/dist/website$ gcloud app deploy --no-promote --project=xom-website`

5. Check that the staging site—URL found in the output of `gcloud app deploy`—looks OK. If it is, promote it from the [cloud console](https://console.cloud.google.com) using *Versions > Migrate Traffic*.
