Skip to content

NeqSim 3.0.0

NeqSim 3.0.0 #854

name: Publish Python 🐍 distributions 📦 to PyPI
on:
release: # Trigger when a new release is made
types: [published]
workflow_dispatch: # Trigger manually
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@master
- name: Install poetry
run: pipx install poetry
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: poetry install --no-interaction
- name: Build wheel
run: poetry build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/