Skip to content

Merge branch 'stable' #223

Merge branch 'stable'

Merge branch 'stable' #223

Workflow file for this run

name: Packaging
on:
push:
branches:
- main
- stable
- docs
- actions*
tags:
- v*
workflow_dispatch:
jobs:
build:
name: Build wheel and sdist
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build check-manifest twine
- name: Run check-manifest
run: |
python -m check_manifest
- name: Build
run: |
python -m build
- name: Run twine check
run: |
python -m twine check dist/*
- name: Upload built packages
uses: actions/upload-artifact@v4
with:
name: packages
path: dist/*
if-no-files-found: error
create_release:
name: Create release
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
needs: [build]
permissions:
contents: write
steps:
- name: Collect wheel and sdist
uses: actions/download-artifact@v4
with:
name: packages
path: dist
- name: Upload wheel, sdist, and executables to release
uses: ncipollo/release-action@v1
with:
name: ${{ github.ref_name }}
draft: true
artifacts: dist/*
token: ${{ secrets.GITHUB_TOKEN }}