Skip to content

Upload Python Package #25

Upload Python Package

Upload Python Package #25

name: Upload Python Package
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment: stable
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Add path for Poetry
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install Dependencies
run: poetry install --no-interaction
- name: Build and publish
run: |
rm -rf dist/
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1