Skip to content

Commit ed4eaf1

Browse files
authored
Merge pull request #3 from kraken-tech/release-tweaks
Implement release process
2 parents c6dccb1 + 50e8e6e commit ed4eaf1

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- '*'
6+
- 'v*'
77
workflow_dispatch:
88

99
permissions:

CONTRIBUTING.md

+15-9
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,20 @@ make dev
176176

177177
to sync your installed packages with the updated versions pinned in `requirements/development.txt`.
178178

179-
## Versioning
180-
181-
This project uses [SemVer] for versioning with no additional suffix after the version number. When
182-
it is time for a new release, run the command `make version_{type}` where `{type}` should be
183-
replaced with one of `major`, `minor`, `patch` depending on the type of changes in the release.
184-
185-
The command will update the version in `pyproject.toml` and move the changes from the "Unreleased"
186-
section of the changelog to a versioned section and create a new "Unreleased" section for future
187-
improvements.
179+
## How to release a new version to Pypi
180+
181+
1. On your branch, run the appropriate command, depending on which kind of release it is:
182+
- either `make version_major`
183+
- or `make version_minor`
184+
- or `make version_patch`.
185+
2. Review the commit that has just been made (note it will have updated the version based on [SemVer]).
186+
3. Push the commit, get it reviewed and merge it to `main`.
187+
4. Once it's merged, tag the merge commit and push tags:
188+
- `git checkout main && git pull`
189+
- `git tag v0.0.0`
190+
- `git push --tags`
191+
5. Keep an eye on the [release workflow] which should have started. Check that it completes, and the latest version has
192+
made its way onto [Pypi](https://pypi.org/project/rustfluent/).
188193

189194
[semver]: https://semver.org/
195+
[release workflow]: https://github.com/kraken-tech/python-rustfluent/actions/workflows/release.yml

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ sign_tags = false
144144
tag_name = "v{new_version}"
145145
tag_message = "Bump version: {current_version} → {new_version}"
146146
allow_dirty = false
147-
commit = false
147+
commit = true
148148
message = "Bump version: {current_version} → {new_version}"
149149
commit_args = ""
150150

0 commit comments

Comments
 (0)