This document outlines the process for creating a new BLT release.
To perform a release:
In order to use these testing instructions:
- The
blt
alias must be installed. - Your LAMP stack must have host entry for
http://local.blted8.com
pointing to./blted8/docroot
. - MySQL must use
mysql://drupal:drupal@localhost/drupal:3306
. - In order to test Drupal VM, you must install VirtualBox and Vagrant. See Drupal VM for more information.
./scripts/blt/pre-release-tests.sh [tag]
- BLT's dependencies must be installed by running
composer install
in the BLT directory. - Ruby 2.2.2+ must be installed. You may use RVM to use a directory specific version of Ruby. E.g.,
rvm use 2.2.2
. - skywinder/github-changelog-generator must be installed. E.g.,
gem install github_changelog_generator
. - Procure a github api token.
- Determine the version of your future release.
Then, generate your release notes via:
./vendor/bin/robo release-notes [tag] [token]
This will update CHANGELOG.md and create a commit locally.
To both generate release notes and also create a new release on GitHub, execute:
./vendor/bin/robo release --update-changelog [tag] [token]
This is a potentially destructive command. It will:
- Perform a hard reset on the 8.x and 8.x-release branches of your local repository
- Update CHANGELOG.md, commit, and push upstream
- Merge 8.x into 8.x-release and push upstream
- Create a draft release on GitHub, populated with release notes