Skip to content

Commit

Permalink
Merge pull request #1249 from twm/release-pt-2
Browse files Browse the repository at this point in the history
GHA release pipeline, pt. 2
  • Loading branch information
twm authored Dec 8, 2024
2 parents 0cd8537 + 9d749b2 commit 41754cb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ Yarrharr is running at [http://127.0.0.1:8888/](http://127.0.0.1:8888/).

## Releasing Yarrharr

1. Bump the version number in ``yarrharr/__init__.py``.
2. Build and tag the release: ``just release``
1. Set the version: ``incremental update yarrharr --newversion YYYY.MM.PP``
2. Tag the release: ``just release``

## License

Expand Down
1 change: 0 additions & 1 deletion bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ tox -e release --notest
version=$(.tox/release/bin/hatch version)
.tox/release/bin/python -m build
.tox/release/bin/python -m twine check "dist/yarrharr-${version}.tar.gz" "dist/yarrharr-${version}-py3-none-any.whl"
git tag "v${version}"
12 changes: 10 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ default:
_static:
tox -e static

release: _static
bin/release.sh
# Tag a release and trigger the GHA release workflow
release:
set -exu -o pipefail
git diff --quiet HEAD || exit 1
[[ $(git rev-parse --abbrev-ref HEAD) == trunk ]]
version=$(.tox/release/bin/hatch version)
tag="v${version}"
git tag "$tag"
git push origin "$tag"
git push origin trunk

devserver: _static
tox -e run -- django-admin migrate
Expand Down

0 comments on commit 41754cb

Please sign in to comment.