-
Notifications
You must be signed in to change notification settings - Fork 3
Creating a release
Nico Van Cleemput edited this page Jul 8, 2020
·
4 revisions
The steps below describe how to release version x.y.z
- Make sure that both the branch
masterandCoCalccontain the version you want to release. Especially, make sure thatmasteris merged intoCoCalc. If changes were made in thespkgfolder, the merge cannot be done automatically, since that folder is removed inCoCalc. Justgit rmthe files and then commit. Usually this workflow will consist of the following commands. (Do not forget to remove the list of conflicting files from the commit message when doing the final commit.)
$ git checkout CoCalc
$ git merge master
$ git rm spkg/README.md
$ git rm spkg/conjecturing/package-version.txt
$ git commit
- Update the version information in the folder
spkg- Switch to the branch
master - Change the version in
spkg/README.mdto x.y.z - Change the version in
spkg/conjecturing/package-version.txt - Commit the changes
- Switch to the branch
$ git add spkg/README.md
$ git add spkg/conjecturing/package-version.txt
$ git commit -m "Upgrading to version 0.11.1"
- Check out the branch
masterand tag the new version.
$ git checkout master
$ git tag -a x.y.z -m "Tagging version x.y.z"
- Check out the branch
CoCalcand tag the new version.
$ git checkout CoCalc
$ git tag -a x.y.z-CoCalc -m "Tagging version x.y.z-CoCalc"
- Push all changes and tags to GitHub.
$ git push --all
$ git push --tags- Check out master, zip the folder
conjecturingin thespkgfolder, and rename the file tospkg.zip. - Go to the GitHub releases section, and check the commits to master since the latest release. Make a list of the changes. We will need this to write the release notes.
- Next click on the 'draft a new release'-link, and enter the following data:
- Tag version: x.y.z
- Release title: Version x.y.z
- Description: add the list of changes as an unordered list
- Add the
spkg.zipfile in the binaries section.
- Repeat these steps for the CoCalc version:
- Tag version: x.y.z-CoCalc
- Release title: Version x.y.z-CoCalc
- Description: add the list of changes as an unordered list
- Update the links and text on the website as needed.