- Merge all PRs
- Create and Merge a PR bumping the version in https://github.com/mlco2/codecarbon/blob/master/setup.py and https://github.com/mlco2/codecarbon/blob/master/meta.yaml.
- Wait for the Github Action
ReleaseDrafterto finish running on the merge commit. - Edit the Draft release on Github and give it a tag,
v1.0.0for the version 1.0.0. Github will automatically create a Git tag for it. - Go to the
packageGithub action for the merge commit, wait for the run to finish, then download the two artifactspypi_distandconda_dist. - In a python environment, install and update twine with
pip install -U twine. Unzip thepypi_dist.ziparchive in a temporary directory withunzip pypi_dist.zipand upload all files inside withtwine upload codecarbon*. - Unzip the
conda_dist.zipin a temporary directory withunzip conda_dist.zip. Start a Docker image in the same directory and bind-mount the current directory with:docker run -ti --rm=true -v (pwd):/data:z continuumio/anaconda3:2020.02. Inside the docker container, runanaconda upload --user codecarbon /data/noarch/codecarbon-*.tar.bz2.