Skip to content

Commit 9814807

Browse files
committed
[PLAT-193] Fix python sdk publish to pypi - part 2
1 parent e53ac9b commit 9814807

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-and-publish-to-pypi.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
tags:
55
- 'v*'
6+
workflow_dispatch:
67
jobs:
78
build-and-publish:
89
runs-on: ubuntu-latest
@@ -11,7 +12,8 @@ jobs:
1112
uses: actions/checkout@v3
1213
with:
1314
fetch-depth: 1
14-
fetch-tags: true
15+
- name: Fetch tags
16+
run: git fetch --tags --depth=1
1517
- name: Set up Python
1618
uses: actions/setup-python@v4
1719
with:
@@ -20,6 +22,10 @@ jobs:
2022
run: |
2123
python -m pip install --upgrade pip
2224
python -m pip install build twine setuptools_scm
25+
- name: Check version
26+
run: |
27+
python -m setuptools_scm
28+
exit 1
2329
- name: Build the package
2430
run: |
2531
python -m build

0 commit comments

Comments
 (0)