Publish to Production #2
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 Production | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-n-publish: | |
name: Publish to PyPI. Build and publish Python 🐍 distributions 📦 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Poetry Setup | |
uses: snok/install-poetry@v1 | |
- name: Build and publish to pypi | |
run: | | |
poetry build | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
poetry publish |