1.0.5 #145
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 with Poetry | |
on: | |
release: | |
types: | |
- created | |
- edited | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
- name: Build | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
poetry lock | |
poetry build | |
- name: Publish distribution 📦 to PyPI | |
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.pypi_token }} | |
poetry publish |