0.3.2rc1 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |