Skip to content

v0.4.4

v0.4.4 #6

Workflow file for this run

name: Python Publish to PYPI
on:
release:
types: published
workflow_dispatch:
inputs:
ref:
description: "commit/tag/branch to release from"
required: true
defaults:
run:
shell: bash
jobs:
publish:
if: >
(github.event.inputs) ||
(!github.event.release.draft &&
!github.event.release.prerelease)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name || github.event.inputs.ref }}
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Package release artifacts
run: |
pip install wheel
python setup.py sdist bdist_wheel
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/