Skip to content

Significantly sped up filtering and minor bug fixes #6

Significantly sped up filtering and minor bug fixes

Significantly sped up filtering and minor bug fixes #6

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build/upload sdist and wheel Package to PyPi
on:
pull_request:
branches:
- release
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
architecture: 'x64'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools wheel twine flake8
- name: Create sdist and wheel
run: |
python3 setup.py sdist bdist_wheel
- name: Upload artifacts for inspection
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/*
- name: Publish sdist and wheel to PyPi
if: github.event_name == 'release' && github.event.action == 'published'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_RINGTAIL }}
run: |
twine upload dist/*