Skip to content

REL: 5.0.0 (#2851)

REL: 5.0.0 (#2851) #6

name: Publish Python Package to PyPI
on:
push:
tags:
- '*.*.*'
workflow_dispatch:
jobs:
build_and_publish:
name: Publish a new version
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install Flit
run: |
python -m pip install --upgrade pip
pip install flit
- name: Checkout Repository
uses: actions/checkout@v4
- name: Publish Package to PyPI🚀
env:
FLIT_USERNAME: '__token__'
FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
run: |
flit publish