Skip to content

Release v2.3.0 (#2926) #35

Release v2.3.0 (#2926)

Release v2.3.0 (#2926) #35

Workflow file for this run

name: Publish to PyPI
on:
push:
tags: ["*"] # this will run full workflow including publish to PyPI
workflow_dispatch:
jobs:
build:
uses: "./.github/workflows/_build-pkg.yml"
with:
artifact-name: package
publish:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: package
path: dist
- name: Install twine
run: pip install -q twine
- name: Publish 📦 to PyPI
# only run this for tags
if: startsWith(github.event.ref, 'refs/tags/')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*