File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 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
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!
You can’t perform that action at this time.
0 commit comments