File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - ' [0-9]+.[0-9]+.[0-9]+*'
7- branches :
8- - vv-fix
97 workflow_dispatch :
108
119jobs :
2220 # Used for the ARM builds.
2321 - macos-14
2422 - windows-latest
25- python-version : ['3.9']
23+ python-version : ['3.9', '3.10', '3.11', '3.12' ]
2624 steps :
2725 - uses : actions/checkout@v4
2826 - uses : actions/setup-python@v5
3836 - name : Validate release tag
3937 id : release
4038 run : |
41- echo "version=0.1.0" >> "${GITHUB_OUTPUT}"
39+ TAG="${GITHUB_REF_NAME}"
40+ if [[ ! "${TAG}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
41+ echo "::error::Tag '${TAG}' does not match the expected x.y.z pattern."
42+ exit 1
43+ fi
44+ echo "version=${TAG}" >> "${GITHUB_OUTPUT}"
4245
4346 - name : Update Python project version
4447 env :
6366 rm rust/target/wheels/*-linux_*
6467 fi
6568 ls -l rust/target/wheels/
66- twine upload -r testpypi - u __token__ -p ${{ secrets.TEST_PYPI_API_TOKEN }} rust/target/wheels/*
69+ twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} rust/target/wheels/*
You can’t perform that action at this time.
0 commit comments