Skip to content

v0.5.0

v0.5.0 #7

Workflow file for this run

name: Publish Python Package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install build
- name: Build package
run: python -m build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: ./dist
publish:
name: Publish package
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write
steps:
- name: Download artifact
uses: actions/download-artifact@v4
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: artifact/