-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 838 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 }}