Skip to content

Commit 82c7c3a

Browse files
committed
[FIX] publsih: build package and install
1 parent 28365f2 commit 82c7c3a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,23 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16+
- uses: ConorMacBride/install-package@v1
17+
with:
18+
apt: protobuf-compiler
1619
- uses: actions/checkout@v4
1720
- name: Set up Python
1821
uses: actions/setup-python@v5
1922
with:
2023
python-version: '3.x'
2124
- name: Install dependencies
2225
run: |
23-
python -m pip install --upgrade pip wheel setuptools twine
24-
pip install setuptools wheel twine
26+
python -m pip install --upgrade pip wheel setuptools twine numpy
2527
- name: Build and publish
2628
env:
2729
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2830
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2931
run: |
3032
python setup.py build_proto_c
31-
python setup.py sdist bdist_wheel
33+
python -m pip wheel -w dist/ ./
34+
python setup.py sdist
3235
python -m twine --repository testpypi upload dist/*

0 commit comments

Comments
 (0)