Custom poetry publish #36
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: Upload Python Package | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: | | |
sudo apt install -y pipx | |
pipx ensurepath | |
pipx install poetry | |
pipx inject poetry poetry-plugin-export | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
- name: Build and publish to Python package repository | |
run: | | |
poetry build | |
poetry publish | |
uses: JRubics/[email protected] |