Skip to content

Commit 49ee9a3

Browse files
committed
fix: Publish to PyPI as release library
1 parent 325e736 commit 49ee9a3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ jobs:
220220
env:
221221
VERSION: ${{ needs.prepare.outputs.version }}
222222
run: |
223-
PKG_DIR=telemetryflow-sdk_${VERSION}_${{ matrix.arch }}
223+
PKG_DIR=telemetryflow-python-sdk_${VERSION}_${{ matrix.arch }}
224224
mkdir -p ${PKG_DIR}/DEBIAN
225225
mkdir -p ${PKG_DIR}/usr/local/bin
226226
@@ -235,7 +235,7 @@ jobs:
235235
env:
236236
VERSION: ${{ needs.prepare.outputs.version }}
237237
run: |
238-
PKG_DIR=telemetryflow-sdk_${VERSION}_${{ matrix.arch }}
238+
PKG_DIR=telemetryflow-python-sdk_${VERSION}_${{ matrix.arch }}
239239
240240
# Control file
241241
cat > ${PKG_DIR}/DEBIAN/control << EOF
@@ -271,7 +271,7 @@ jobs:
271271
env:
272272
VERSION: ${{ needs.prepare.outputs.version }}
273273
run: |
274-
PKG_DIR=telemetryflow-sdk_${VERSION}_${{ matrix.arch }}
274+
PKG_DIR=telemetryflow-python-sdk_${VERSION}_${{ matrix.arch }}
275275
dpkg-deb --build ${PKG_DIR}
276276
mkdir -p packages
277277
mv ${PKG_DIR}.deb packages/
@@ -363,7 +363,7 @@ jobs:
363363
3. Run: .\install.ps1
364364
365365
Or install via pip:
366-
pip install telemetryflow-sdk
366+
pip install telemetryflow-python-sdk
367367
368368
Available Commands:
369369
- telemetryflow-gen.exe - SDK code generator
@@ -456,7 +456,7 @@ jobs:
456456
3. Run: ./install.sh
457457
458458
Or install via pip:
459-
pip install telemetryflow-sdk
459+
pip install telemetryflow-python-sdk
460460
461461
Available Commands:
462462
- telemetryflow-gen - SDK code generator
@@ -488,7 +488,7 @@ jobs:
488488
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_pypi == 'true') }}
489489
environment:
490490
name: pypi
491-
url: https://pypi.org/p/telemetryflow-sdk
491+
url: https://pypi.org/p/telemetryflow-python-sdk
492492
steps:
493493
- name: Download package
494494
uses: actions/download-artifact@v4
@@ -499,6 +499,7 @@ jobs:
499499
- name: Publish to PyPI
500500
uses: pypa/gh-action-pypi-publish@release/v1
501501
with:
502+
password: ${{ secrets.PYPI_API_TOKEN }}
502503
skip-existing: true
503504
continue-on-error: true
504505

@@ -607,7 +608,7 @@ jobs:
607608
608609
**Via pip (recommended):**
609610
```bash
610-
pip install telemetryflow-sdk==${{ needs.prepare.outputs.version }}
611+
pip install telemetryflow-python-sdk==${{ needs.prepare.outputs.version }}
611612
```
612613
613614
### Included Generators

0 commit comments

Comments
 (0)