diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..b7896d4 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,36 @@ +name: Publish Python package to PyPI + +on: push + +jobs: + build-n-publish: + name: Build and publish Python package to PyPI + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + + - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/README.md b/README.md index 9ebaa44..8cc05c9 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Pure Python package (that only depends on Python stdlib) to resolve a package:// Use the package manager [pip](https://pip.pypa.io/en/stable/) to install resolve-robotics-uri-py. ```bash -python -m pip install git+https://github.com/ami-iit/resolve-robotics-uri-py +python -m pip install resolve-robotics-uri-py ``` ## Usage in Python