Skip to content

v0.5.3

v0.5.3 #23

Workflow file for this run

name: Deploy Python Package
on:
workflow_dispatch:
inputs:
ref:
description: 'Git ref to deploy (tag or branch), e.g. 0.5.2'
required: true
default: '0.5.2'
release:
types: [published]
jobs:
deploy:
name: Deploy to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Check out selected ref
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref || github.ref }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*