File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,13 @@ jobs:
166
166
runs-on : ${{ matrix.os }}
167
167
steps :
168
168
- uses : actions/checkout@v4
169
+ with :
170
+ fetch-depth : 1 # shallow clone
171
+ - name : Fetch tags for dynamic versioning in setup.py
172
+ run : |
173
+ git fetch --depth=1 origin --tags
174
+ echo "Available Git tags:"
175
+ git tag -n
169
176
- name : Download build artifact
170
177
uses : actions/download-artifact@v4
171
178
with :
@@ -183,7 +190,8 @@ jobs:
183
190
python-version : ${{ matrix.python-version }}
184
191
cache : pip
185
192
- run : pip install build wheel
186
- - run : python -m build .
193
+ # for now need to do the below instead of prior `python -m build .`, which didn't allow us to access git tags
194
+ - run : python -m build --sdist && python -m build --wheel
187
195
- name : Determine and Set Platform Tag, then Tag Wheel
188
196
shell : bash
189
197
run : |
You can’t perform that action at this time.
0 commit comments