Skip to content

PyPI Package

PyPI Package #22

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: PyPI Package
on:
release:
types: [published]
workflow_dispatch:
jobs:
deploy:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/MethodicConfigurator
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U wheel
python -m pip install -U pymavlink
pip install build
pip install -U .
- name: Build package
run: python -m build
- name: Publish package distribuitions tp PyPI
uses: pypa/gh-action-pypi-publish@release/v1