We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b25c89c commit 125a857Copy full SHA for 125a857
.github/workflows/main.yml
@@ -125,6 +125,7 @@ jobs:
125
- name: Publish to PyPI
126
run: |
127
pip install poetry
128
+ poetry version ${{ needs.meta.outputs.bin_version }}
129
poetry build
130
131
- name: Publish package distributions to PyPI
.version.sh
@@ -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