Skip to content

Commit

Permalink
Add release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Sep 12, 2024
1 parent f6343be commit eb0ec3d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@
A bot to help facilitate the [Matrix Spec Proposal
Process](https://matrix.org/docs/spec/proposals).

However it is written in a generic way such that it can be used for any project wanting to
However, it is written in a generic way such that it can be used for any project wanting to
make use of a similar process.

The official instance of this bot is running under the GitHub user @mscbot. A user guide is available
here: [User Guide](docs/user_guide.md).

The infrastructure for the official instance is
hosted [on the Matrix.org Foundation's ArgoCD](https://argocd.vpn.infra.matrix.org/applications/argocd/mscbot)
(non-public link).

## Installation

### Getting the code
Expand Down Expand Up @@ -115,10 +122,6 @@ Put your config file somewhere and then mount it via a volume.
docker run -v /path/to/config/dir:/config matrixdotorg/mscbot-python python -m mscbot -c /config/config.yaml
```

## User guide

See [docs/user_guide.md](docs/user_guide.md).

## Development

Several python dependencies are necessary to support development scripts. They can be installed by running:
Expand All @@ -137,4 +140,8 @@ Before submitting a PR, make sure to lint your code:

```
./scripts-dev/lint.sh
```
```

### Creating a new release

See [RELEASING.md](RELEASING.md).
45 changes: 45 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Releasing `mscbot-python`

To make a new release of `mscbot-python`, perform the following.

1. Determine the new version number. This project follows [semantic versioning](https://semver.org/). Store the release version in an environment variable called `RELEASE_VERSION`.

```
export RELEASE_VERSION=X.Y.Z
```
**Note:** Do not include a `v` before the version number.
1. Update `setup.py` with the new version number:
```
sed -i "s/version=\"[0-9]\+\.[0-9]\+\.[0-9]\+\"/version=\"${RELEASE_VERSION}\"/" setup.py
```
1. Stage, commit and push the changes:
```
git add setup.py
git commit -m "$RELEASE_VERSION"
```
1. Create a new git tag:
```
git tag $RELEASE_VERSION -m "$RELEASE_VERSION"
```
1. Push the tag to the repository:
```
git push origin $RELEASE_VERSION
```
**Note:** A docker image will be automatically created and published when
the tag is uploaded.
1. [Create a new release](https://github.com/matrix-org/mscbot-python/releases/new)
on GitHub.
Select the tag that was just created and click "Generate release notes".
1. Press "Publish release", and you're done! 🍾

0 comments on commit eb0ec3d

Please sign in to comment.