Skip to content

Commit 60eb92a

Browse files
authored
Merge pull request #10 from contextualizer-ai/5-switch-from-token-authentication-for-pypi-to-trusted-publishing
more debugging of build and publish action
2 parents 81fd400 + 891a262 commit 60eb92a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,14 @@ jobs:
7171
PACKAGE_VERSION=$(hatch version)
7272
echo "Tag version: $TAG_VERSION"
7373
echo "Package version: $PACKAGE_VERSION"
74+
echo "Git describe: $(git describe --tags --long)"
75+
echo "Git status: $(git status --porcelain)"
7476
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
7577
echo "Version mismatch! Tag: $TAG_VERSION, Package: $PACKAGE_VERSION"
78+
echo "This usually means:"
79+
echo "1. The tag points to the wrong commit"
80+
echo "2. There are commits after the tagged commit"
81+
echo "3. Multiple tags point to the same commit"
7682
exit 1
7783
fi
7884

0 commit comments

Comments
 (0)