Skip to content

0.3.2rc2

0.3.2rc2 #4

Workflow file for this run

name: Publish to PyPI
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Poetry
run: |
export POETRY_VERSION=1.6.1
curl -sSL https://install.python-poetry.org | python3 -
export PATH="${HOME}/.local/bin:$PATH"
echo "${PATH}" >> "${GITHUB_PATH}"
poetry config virtualenvs.create false
- name: Build and Publish
run: |
poetry config pypi-token.pypi "$PYPI_TOKEN"
poetry publish --build
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}