Skip to content

worker-v0.2.0-beta.4 #18

worker-v0.2.0-beta.4

worker-v0.2.0-beta.4 #18

Workflow file for this run

# This file is autogenerated by maturin v1.10.2
# To update, run
#
# maturin generate-ci github
#
name: Publish to PyPI
on:
release:
types: [published]
permissions:
contents: read
jobs:
build:
if: github.repository_owner == 'ccxlv' && startsWith(github.event.release.tag_name, 'v')
name: ${{ matrix.os }} (Py ${{ matrix.python-version }})
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macos-15-intel
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Run Build Suite
uses: ./.github/actions/build-package
with:
python-version: ${{ matrix.python-version }}
target: ${{ matrix.target }}
sdist:
if: github.repository_owner == 'ccxlv' && startsWith(github.event.release.tag_name, 'v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels-sdist
path: dist
release:
if: (github.repository_owner == 'ccxlv') && ${{ startsWith(github.event.release.tag_name, 'v') }}

Check warning on line 57 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish to PyPI

Workflow syntax warning

.github/workflows/publish.yml (Line: 57, Col: 9): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
name: Release
runs-on: ubuntu-latest
needs: [build, sdist]
permissions:
id-token: write
contents: write
attestations: write
steps:
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: "dist/**/*"
- name: Publish to PyPI
run: uv publish "dist/**/*"