Update to v0.1.1 #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [main, debug-ci] | |
tags: ["v*"] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
release: | |
types: | |
- created | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
container: ros:humble | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up pip | |
run: apt update && apt install -y python3-pip | |
- name: Build | |
run: | | |
python3 setup.py sdist | |
- name: Install | |
run: | | |
export PYTHONPATH=$PYTHONPATH:/opt/ros/humble/lib/python3.10/site-packages/ | |
pip3 install . | |
- name: Publish to PyPI | |
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' | |
uses: pypa/gh-action-pypi-publish@v1.8.6 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |