Skip to content

Commit

Permalink
Merge pull request #296 from EvanBldy/master
Browse files Browse the repository at this point in the history
new process for release
  • Loading branch information
EvanBldy authored Sep 11, 2023
2 parents adfe80d + 38cb9b5 commit ab34132
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
26 changes: 7 additions & 19 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
# How to create a new release for Gazu

We release Gazu versions through Github. Every time a new version is ready, we
We release Gazu versions through Github Actions on Pypi. Every time a new version is ready, we
follow this process:

1. Up the version number located the `gazu/__version__` file.
2. Rebase on the master branch.
2. Push changes to `master` branch.
3. Build the package from the sources
4. Tag the commit and push the changes to Github
5. Publish the package on Pypi
1. Rebase on the master branch.
2. Up the version number located the `gazu/__version__` file.
3. Push changes to `master` branch.
4. Tag the commit and push the changes to Github.
5. Github Actions will build the package from the sources and publish the package on Pypi

You can run the following script to perform these commands at once:

```bash
release_number=0.9.0
git pull --rebase origin master
echo "__version__ = \"$release_number\"" > gazu/__version__.py
git commit gazu/__version__.py -m $release_number
git tag v$release_number
git push origin master --tag
python setup.py bdist_wheel --universal
twine upload dist/gazu-$release_number-py2.py3-none-any.whl
```
You can run a script to perform these commands at once, he is located in scripts/release.sh.

# Deployment

Expand Down
9 changes: 3 additions & 6 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
release_number=0.8.27
twine --help || exit 1
git pull --rebase origin master
last_release_number=$(python -c "from gazu import __version__; print(__version__)")
release_number=$(echo ${last_release_number} | awk -F. -v OFS=. '{$NF += 1 ; print}')
echo "__version__ = \"$release_number\"" > gazu/__version__.py
git add gazu/__version__.py
git commit gazu/__version__.py -m $release_number
git pull --rebase origin master
git tag v$release_number
git push origin master --tag
python setup.py bdist_wheel --universal
twine upload dist/gazu-$release_number-py2.py3-none-any.whl

0 comments on commit ab34132

Please sign in to comment.