Skip to content

Deploy to PyPI

Deploy to PyPI #51

Workflow file for this run

name: Deploy to PyPI
on:
workflow_run:
workflows: ["Test", "Monthly Update FileID"]
types:
- completed
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools build twine wheel
- name: Build package
run: |
python -m build
- name: Check package
run: |
twine check dist/*
- name: Publish package to PyPI
run: |
twine upload --skip-existing dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}