Skip to content

pyopensky v2.7 release #10

pyopensky v2.7 release

pyopensky v2.7 release #10

Workflow file for this run

# This workflows will upload a Python Package using Twine when a release is created
name: publish
on:
release:
types: [published]
workflow_dispatch:
env:
POETRY_VERSION: "1.7.0"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install and configure Poetry
uses: snok/[email protected]
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-in-project: true
- name: Display Python version
run: poetry run python -c "import sys; print(sys.version)"
- name: Build packages
run: poetry build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}