Skip to content

0.2.0

0.2.0 #4

Workflow file for this run

name: publish to pypi
on:
release:
types: [ published ]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "nogil-3.9" ]
permissions:
id-token: write # necessary for OIDC publishing https://docs.pypi.org/trusted-publishers/adding-a-publisher/
steps:
- uses: actions/checkout@v3
- name: set up python ${{ matrix.python-version }}
uses: dpdani/setup-python@nogil
with:
python-version: ${{ matrix.python-version }}
- name: check nogil
run: |
python -c "import sys; print(sys.flags.nogil);"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: build package
run: python -m build
- name: remove wheels # cannot yet publish wheels for free-threaded python
run: rm dist/*.whl
- name: publish package
uses: pypa/gh-action-pypi-publish@release/v1