Skip to content

Commit

Permalink
[FIX] publsih: build package and install
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchnizer committed Jun 14, 2024
1 parent 28365f2 commit 82c7c3a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ConorMacBride/install-package@v1
with:
apt: protobuf-compiler
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools twine
pip install setuptools wheel twine
python -m pip install --upgrade pip wheel setuptools twine numpy
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py build_proto_c
python setup.py sdist bdist_wheel
python -m pip wheel -w dist/ ./
python setup.py sdist
python -m twine --repository testpypi upload dist/*

0 comments on commit 82c7c3a

Please sign in to comment.