Files

29 lines
660 B
YAML

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