Skip to content

Get pin from pypi

Get pin from pypi #16

Workflow file for this run

name: Build and publish wheels
on:
# Build (smoke-test) on pushes to main.
push:
# branches: [main] # TODO: Uncomment after testing
# Build and publish when a GitHub release is published.
release:
types: [published]
# Manual trigger
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheels:
name: Build wheels (Linux x86_64)
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
with:
# Build the bindings sub-package, not the repo root.
package-dir: bindings/
output-dir: wheelhouse/
- name: Upload wheels as artifact
uses: actions/upload-artifact@v4
with:
name: wheels
path: wheelhouse/*.whl
publish:
name: Publish to PyPI
needs: build_wheels
runs-on: ubuntu-22.04
# Only publish when triggered by a release event.
if: github.event_name == 'release'
environment:
name: pypi
url: https://pypi.org/p/roboplan
permissions:
id-token: write # Required for PyPI trusted publishing (OIDC)
steps:
- name: Download wheels
uses: actions/download-artifact@v4
with:
name: wheels
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1