= Steps to release galleon project

== STEP 1: Prepare and perform the release

First, make sure you don't have pending changes in your main branch.

WARNING: Make sure that you are using JDK 11 to do the release.

* `cd galleon`
* `git checkout main`
* `git pull --rebase upstream main`
* `mvn clean install`
* Check that the cli starts, and can provision Wildfly: 
** `./do.sh run`
** `install wildfly --dir=foo`
** `exit`
** `rm -rf foo`
* Update docs/* content to reference the new released version.
* Update do.sh script to reference the new released version.
* Commit the changes with message: `Update doc and script to X.X.X.Final`
* `mvn release:prepare -Darguments=-Drelease`
* `mvn release:perform -Darguments=-Drelease`
* Update docs/* content to reference the new SNAPSHOT version.
* Update do.sh script to reference the new SNAPSHOT version.
* Commit the changes with message: `Update doc and script to X.X.X.Final-SNAPSHOT`
* `git push upstream main`

== STEP 2: Release in Nexus

* Log to `https://repository.jboss.org/nexus`
* Close the staging repository.
* Release the closed repository.

== STEP 3: Release in github

* Go to https://github.com/wildfly/galleon/releases
* Edit the release you just created.
* Upload dist/target/galleon-X.X.X.Final.zip to the release.

== STEP 4: Release in JIRA

* Log to `https://issues.jboss.org/projects/GAL`
* Click on `Releases`
* Select Release you just released, Click on `Actions/Release`
* Set the date.
* Click on `Manage Versions` and add the next version.
