Skip to content

feat: support mla and linear attention (#107) #2

feat: support mla and linear attention (#107)

feat: support mla and linear attention (#107) #2

Workflow file for this run

name: PyPI Release
on:
push:
tags:
- "v*.*.*"
jobs:
publish:
name: Build and publish wheel
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Derive package version from tag
env:
REF_NAME: ${{ github.ref_name }}
run: |
VERSION="${REF_NAME#v}"
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Tag must match vx.x.x, got: ${REF_NAME}" >&2
exit 1
fi
echo "PACKAGE_VERSION=${VERSION}" >> "$GITHUB_ENV"
- name: Bump package version
run: |
python ci/bump_version.py "$PACKAGE_VERSION"
- name: Install build dependencies
run: python -m pip install --upgrade pip build
- name: Build wheel
run: python -m build --wheel
- name: Publish wheel to PyPI
uses: pypa/gh-action-pypi-publish@release/v1