Skip to content

pypi

pypi #221

Workflow file for this run

name: pypi
on:
create:
tags:
- '*'
defaults:
run:
shell: bash -l {0}
jobs:
pypi:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
name: upload to pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: build
run: |
pip install .[actions]
rm -f dist/*
python -m build
- name: upload
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
twine upload dist/*