Skip to content

Pypi Deploy

Pypi Deploy #122

Workflow file for this run

name: Pypi Deploy
on:
workflow_run:
workflows:
- build
branches:
- main
types:
- completed
jobs:
upload_files:
environment: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Prepare pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: pip install -e .[dev]
- name: Package
run: python3 -m build
- name: Upload
run: python3 -m twine upload --skip-existing dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}