Skip to content

Build Python Distribution #2

Build Python Distribution

Build Python Distribution #2

Workflow file for this run

name: Build Python Distribution
on:
workflow_dispatch:
jobs:
build_wheel:
name: Build Wheel
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.13"
- run: python3 -m pip install build
- run: python3 -m build
- uses: actions/upload-artifact@v4
with:
name: build_wheel
path: dist
release:
needs:
- build_wheel
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Download Wheel
uses: actions/download-artifact@v4
with:
name: build_wheel
path: dist
- name: Create Release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
allowUpdates: true
artifacts: "dist/*"
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1