v0.1.1 #5
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: PYPI Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
pypi_release: | |
name: Builds Using Poetry and Publishes to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{github.event.release.tag_name}} | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Install venv | |
run: poetry install | |
- name: Configure Poetry For Publication | |
run: poetry config pypi-token.pypi "${{secrets.PYPI_API_KEY}}" | |
- name: Publish package | |
run: poetry publish --build |