Skip to content

Commit 9b7b30b

Browse files
committed
Trigger testpypi publish 3.2.6.8
1 parent 8fed448 commit 9b7b30b

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/bld_wheels_and_upload.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -143,23 +143,16 @@ jobs:
143143
run: python -m pip install --upgrade pip build
144144
- name: Build sdist
145145
run: python -m build --sdist --no-isolation
146-
- name: Package version
147-
id: version
146+
- name: Remove clidriver from sdist
148147
run: |
149-
cd dist
150-
pip install ibm_db*
151-
echo "VERSION=$(python -c 'import ibm_db; print(ibm_db.__version__)')" >> $GITHUB_OUTPUT
152-
- name: Build source distribution
153-
run: |
154-
PACKAGE="ibm_db-$VERSION"
155148
cd dist
156-
tar -xzf $PACKAGE.tar.gz
157-
rm -rf $PACKAGE/clidriver*
158-
rm -rf $PACKAGE.tar.gz
159-
tar -czf $PACKAGE.tar.gz $PACKAGE
160-
rm -rf $PACKAGE
161-
env:
162-
VERSION: ${{ steps.version.outputs.VERSION}}
149+
TARBALL=$(ls ibm?db-*.tar.gz | head -1)
150+
DIRNAME="${TARBALL%.tar.gz}"
151+
tar -xzf "$TARBALL"
152+
rm -rf "$DIRNAME"/clidriver*
153+
rm -rf "$TARBALL"
154+
tar -czf "$TARBALL" "$DIRNAME"
155+
rm -rf "$DIRNAME"
163156
164157
- name: Upload sdist
165158
uses: actions/upload-artifact@v4.4.3

0 commit comments

Comments
 (0)