eishub/eis — pull request #31 by MartinRogalla (2014-06-09 13:16:08+00:00)
Title: Modified the pom.xml of apleis to allow for releases to be deployed to GitHub 'releases' branch.

To set this up locally on the computer of the person who wants to deploy the artifacts, perform the following steps:
**Step 1.** *Request a Personal Access Token* at the [Security Settings](https://github.com/settings/applications#personal-access-tokens) of your GitHub account. Save the key somewhere, you will need it in the next step.
**Step 2.** *Create or modify your local maven settings* normally located under `~/.m2/settings.xml`. **Warning:** this file shoud not be publicly accessible since it will contain your GitHub credentials.

```

github
GITHUB-USERNAME
GITHUB-OAUTHKEY

```
Replace `GITHUB-USERNAME` with your GitHub Username and `GITHUB-OAUTHKEY` with the key which you created in step 1.

**Step 3.** Create an orphaned `releases` branch which will contain your releases and push it to GitHub. To do this run the following command:
```
git checkout --orphaned releases && git push origin releases
```

**Step 4.** In order to deploy your artifacts run the following command in the /eis/apleis directory:
```
mvn clean deploy
```

If everything worked correctly, you will now have your artifacts in the `releases` branch.