Skip to content

Deploy

Deploy #84

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: Build
branches: main
# tags: v[\d.]+
types: completed
jobs:
pypi:
name: Deploy to PyPI
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
workflow: build.yml
name: dist--${{ github.event.workflow_run.id }}
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}