Skip to content

Commit 125a857

Browse files
committed
Update version
Signed-off-by: Andy Blyler <andy@blyler.cc>
1 parent b25c89c commit 125a857

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ jobs:
125125
- name: Publish to PyPI
126126
run: |
127127
pip install poetry
128+
poetry version ${{ needs.meta.outputs.bin_version }}
128129
poetry build
129130
130131
- name: Publish package distributions to PyPI

.version.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
if [ -z "$(git tag --points-at HEAD)" ]; then
5+
git describe --always --long --dirty | sed 's/^v//'
6+
else
7+
git tag --points-at HEAD | sed 's/^v//' | awk '{ print length, $0 }' | sort -n -s | cut -d" " -f2- | tail -n 1
8+
fi

0 commit comments

Comments
 (0)