|
| 1 | +# Release process for `scientific-python-hugo-theme` |
| 2 | + |
| 3 | +## Introduction |
| 4 | + |
| 5 | +Example `version number` |
| 6 | + |
| 7 | +- 1.8.dev0 # development version of 1.8 (release candidate 1) |
| 8 | +- 1.8rc1 # 1.8 release candidate 1 |
| 9 | +- 1.8rc2.dev0 # development version of 1.8 release candidate 2 |
| 10 | +- 1.8 # 1.8 release |
| 11 | +- 1.9.dev0 # development version of 1.9 (release candidate 1) |
| 12 | + |
| 13 | +## Process |
| 14 | + |
| 15 | +- Set release variables: |
| 16 | + |
| 17 | + export VERSION=<version number> |
| 18 | + export PREVIOUS=<previous version number> |
| 19 | + export ORG="scientific-python" |
| 20 | + export REPO="scientific-python-hugo-theme" |
| 21 | + export LOG="CHANGELOG.md" |
| 22 | + |
| 23 | +- Autogenerate release notes |
| 24 | + |
| 25 | + changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION} --out ${VERSION}.md |
| 26 | + |
| 27 | +- Put the output of the above command at the top of `CHANGELOG.md` |
| 28 | + |
| 29 | + cat ${VERSION}.md | cat - ${LOG} > temp && mv temp ${LOG} |
| 30 | + |
| 31 | +- Commit changes: |
| 32 | + |
| 33 | + git add CHANGELOG.md |
| 34 | + git commit -m "Designate ${VERSION} release" |
| 35 | + |
| 36 | +- Tag the release in git: |
| 37 | + |
| 38 | + git tag -s v${VERSION} -m "signed ${VERSION} tag" |
| 39 | + |
| 40 | + If you do not have a gpg key, use -u instead; it is important for |
| 41 | + Debian packaging that the tags are annotated |
| 42 | + |
| 43 | +- Push the new meta-data to github: |
| 44 | + |
| 45 | + git push --tags origin main |
| 46 | + |
| 47 | + where `origin` is the name of the `github.com:scientific-python/scientific-python-hugo-theme` |
| 48 | + repository |
| 49 | + |
| 50 | +- Review the github release page: |
| 51 | + |
| 52 | + https://github.com/scientific-python/scientific-python-hugo-theme/tags |
0 commit comments