Release Script: Difference between revisions
From Mahara Wiki
(Created page with "<br /> ==⚡ The release script== *A git repo will be created at <code>/tmp/mahara.####/mahara/</code> cloned from https://git.mahara.org/mahara/mahara . *It builds Mahara ar...") |
m (Dianne.tennent moved page Developer Area/Release Instructions/Template:Release Script to Template:Release Script) |
(No difference)
|
Revision as of 16:14, 6 Mayıs 2022
⚡ The release script
- A git repo will be created at
/tmp/mahara.####/mahara/
cloned from https://git.mahara.org/mahara/mahara . - It builds Mahara archives based on the given _DEV branch and puts thme into your current folder. (
.zip
,.tar.gz.asc
, and.tar.bz2.asc
) - You will get a
release-X.Y.Z-cleanup.sh
script to run later. - (Major releases .0) A new
_STABLE
branch is created off the_DEV
branch.
Run the script
- Go into
mahara-scripts
andgit pull
the latest version. - Run
./release.php X.Y.Z X.Y_DEV
.X.Y.Z
is the new branch that will be made. This is also used in the archive file names.X.Y_DEV
is the existing branch we will create the new release from.- If the
Z
inX.Y.Z
is "0" this will also create a new_STABLE
branch.
- When prompted, insert your changelog.
Any data you enter for the prompts will go into the Launchpad release page. You can enter it here, or leave it empty here and enter it directly into the Launchpad webpage.
Check the terminal output in case there are GPG errors
E.g. Tag new version bump commit as 'X.YRC2_RELEASE' error: gpg failed to sign the data error: unable to sign the tag
So this is what I did to fix it, all commands are on command line:
- Update the gpg program with:
git config --global gpg.program gpg2
- Test if it is working with:
echo "test" | gpg2 --clearsign
It wasn't so I had to do: export GPG_TTY=$(tty)
then run again echo "test" | gpg2 --clearsign
Run release.php
command again and check if it still gives the error.
Do not reboot your machine in the middle of doing a release or you will have to run through the release script again.
Note: For release candidates the commit message should be empty.