Skip to content

Release to PyPI and documentation #121

Release to PyPI and documentation

Release to PyPI and documentation #121

Workflow file for this run

name: Release to PyPI and documentation
on:
push:
tags: ["python-v*"]
defaults:
run:
working-directory: ./python
env:
FEATURES_FLAG:
jobs:
release-pypi-manylinux:
name: PyPI release manylinux
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Publish manylinux to pypi x86_64 (with sdist)
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
maturin-version: v1.6.0 # https://github.com/PyO3/maturin/issues/2154
target: x86_64-unknown-linux-gnu
command: publish
args: --skip-existing -m python/Cargo.toml ${{ env.FEATURES_FLAG }}
# for openssl build
before-script-linux: yum install -y perl-IPC-Cmd
- name: Publish manylinux to pypi aarch64 (without sdist)
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
target: aarch64-unknown-linux-gnu
command: publish
args: --skip-existing -m python/Cargo.toml --no-sdist ${{ env.FEATURES_FLAG }}
before-script-linux: |
# We can remove this once we upgrade to 2_28.
# https://github.com/briansmith/ring/issues/1728
export CFLAGS_aarch64_unknown_linux_gnu="-D__ARM_ARCH=8"