Skip to content

Update python-publish.yml #4

Update python-publish.yml

Update python-publish.yml #4

# This workflow will
# - build distribution package
# - deploy produced distribution package to PyIP
#
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Deploy Python Package
on:
workflow_dispatch:
push:
branches: [main]
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies and build
run: |
pip install -e '.[dev]'
python -m build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PASSWORD }}