Skip to content

Commit

Permalink
Merge pull request #103 from pollen-robotics/102-add-cicd-to-publish-…
Browse files Browse the repository at this point in the history
…to-pypi

enhancement #102: adding CI/CD
  • Loading branch information
FabienDanieau authored Apr 8, 2024
2 parents eecd05c + 5a74c86 commit e587eaf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Upload Python Package on Pypi.

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="reachy2-sdk-api",
version="1.0.1",
version="1.0.2",
packages=find_packages(exclude=["tests"]),
install_requires=[
"grpcio>=1.59.0, <=1.62.2",
Expand Down

0 comments on commit e587eaf

Please sign in to comment.