- Change the version number in the info.yml file and commit. For Hg Reader you must also change the version number at the top of the .module file.
- Publish the latest release; format the release name as e.g. v5.0.1. Make sure the release is based on the correct branch and supply a descriptive, uh, description.
- For gt_theme, gt_tools, and hg_reader, update the relevant xml in web/release_histories in the Comm site.
SEE LIST BELOW: "How to update the release XML" Push the change to GitHub with
git push origin stage- Push the change to the Upsun stage site with
git push upsun stage - Merge the changes on stage into main on Upsun with this command
upsun merge
------
How to update the release XML
- Go to https://github.gatech.edu/ICWebTeam.
- Select the repo in question from the pinned repos (currently release histories are in the Comm site).
Git pullthe repo. - Click the latest release on the right (example: “v4.0.7”, “gt_theme-4.x.xml”).
Additional notes on this step: (-3.x is the Drupal 9 version; before that we named them by Drupal version, so -7x is for Drupal 7 and -8x is Drupal 8). - Download the tar.gz source.
- In your local clone of comm.gatech.edu, navigate to web/release_histories.
There are a few things that need to be edited here (note—change the information in the files, not the file names):
a. releases/release/name – change to 4.0.7 (or whatever number)b. releases/release/version – same
c. releases/release/tag – same
d. releases/release/download_link – same
e. releases/release/date – this is supposed to be the file date but it only needs to be relatively close. Best way to get the current timestamp is to do at the command line
date +%sf. releases/release/files/file/url – change the version number as above.
g. releases/release/files/file/md5 — this is an md5 hash of the file. You can get it in the terminal.
cdto your downloads directory and domd5 name_of_file_from_step_4.
Notes on this step: You may need to install md5 first; ping Fletch if this step doesn’t work.h. releases/release/files/file/size — you can get the filesize by doing
ls -lain your downloads folder. Copy the number from the 5th column.
Notes on this step: Look for the row that ends with the repo name dash version number dot tar.gz (for example, gt_theme-4.0.6.tar.gz)i. releases/release/files/file/filedate — use the same value as from step 6e.
NOTE: info.yml should be updated with the new version in the case of hg_reader, the .module file contains the version as well, as a constant, near the top