Publish pip on PyPi #1
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 pip on PyPi | |
on: workflow_dispatch | |
jobs: | |
publish-to-production-pypi: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
python-version: [ "3.9" ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Publish to production PyPI | |
run: | | |
poetry version $(git describe --tags --abbrev=0) | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
poetry publish --build |