Skip to content

Commit ea15f11

Browse files
committed
override_version
1 parent 37d8aea commit ea15f11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
python3 -m pip install .
2626
python3 -m build
2727
28+
python3 override_version.py
29+
2830
VERSION=${{ github.event.release.tag_name }}
2931
SDIST_PACKAGE_NAME="schematicpy-${VERSION}.tar.gz"
3032
BDIST_PACKAGE_NAME="schematicpy-${VERSION}-py3-none-any.whl"
@@ -74,4 +76,4 @@ jobs:
7476
- name: deploy-to-test-pypi
7577
uses: pypa/gh-action-pypi-publish@release/v1
7678
with:
77-
repository-url: https://test.pypi.org/legacy/
79+
repository-url: ${{ github.event.release.prerelease == true && 'https://test.pypi.org/legacy/' || '' }}

0 commit comments

Comments
 (0)