Skip to content

Version 2.4.0

Version 2.4.0 #39

Workflow file for this run

name: Publish Python Package
on:
workflow_dispatch:
release:
types:
- published
jobs:
build_sdist:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build SDist and Wheel
run: pipx run build --sdist --wheel
- name: Check metadata
run: pipx run twine check dist/*
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*
upload_all:
name: Upload release
needs: [build_sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/acom_music_box
permissions:
id-token: write
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1