Skip to content

Commit 0b880e3

Browse files
authored
Merge pull request #40 from PolymathicAI/EiffL-patch-4
Update publish-pypi.yml
2 parents 2234f78 + 1973c96 commit 0b880e3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
url: https://pypi.org/p/polymathic-aion
1515
permissions:
1616
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17+
contents: read
1718

1819
steps:
1920
- name: Checkout code
@@ -34,17 +35,6 @@ jobs:
3435
- name: Build package
3536
run: python -m build
3637

37-
- name: Verify version matches tag
38-
run: |
39-
TAG_VERSION=${GITHUB_REF#refs/tags/v}
40-
PACKAGE_VERSION=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")
41-
echo "Tag version: $TAG_VERSION"
42-
echo "Package version: $PACKAGE_VERSION"
43-
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
44-
echo "Version mismatch! Tag: $TAG_VERSION, Package: $PACKAGE_VERSION"
45-
exit 1
46-
fi
47-
4838
- name: Publish to PyPI
4939
uses: pypa/gh-action-pypi-publish@release/v1
5040
# This action uses OIDC trusted publishing - no API tokens needed!

0 commit comments

Comments
 (0)