Skip to content

Commit

Permalink
Enable portion of release job to show which wheels would be uploaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Nov 21, 2024
1 parent 196ce38 commit a4ee96a
Showing 1 changed file with 33 additions and 30 deletions.
63 changes: 33 additions & 30 deletions .github/workflows/build_langsmith_pyo3_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,33 +174,36 @@ jobs:
path: rust/crates/langsmith_pyo3/dist
if-no-files-found: error

# release:
# name: Release
# runs-on: ubuntu-latest
# if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
# needs: [linux, musllinux, windows, macos, sdist]
# permissions:
# # Use to sign the release artifacts
# id-token: write
# # Used to upload release artifacts
# contents: write
# # Used to generate artifact attestation
# attestations: write
# steps:
# - uses: actions/download-artifact@v4
# with:
# path: rust/crates/langsmith_pyo3
# - name: Generate artifact attestation
# uses: actions/attest-build-provenance@v1
# with:
# subject-path: 'rust/crates/langsmith_pyo3/wheels-*/*'
# - name: Publish to PyPI
# if: startsWith(github.ref, 'refs/tags/')
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# working-directory: rust/crates/langsmith_pyo3
# rust-toolchain: nightly
# command: upload
# args: --non-interactive --skip-existing wheels-*/*
release:
name: Release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
needs: [linux, musllinux, windows, macos, sdist]
permissions:
# Use to sign the release artifacts
id-token: write
# Used to upload release artifacts
contents: write
# Used to generate artifact attestation
attestations: write
steps:
- uses: actions/download-artifact@v4
with:
path: rust/crates/langsmith_pyo3
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: 'rust/crates/langsmith_pyo3/wheels-*/*'
- name: Show which wheels exist
run: |
cd rust/crates/langsmith_pyo3
ls -alh wheels-*
# - name: Publish to PyPI
# if: startsWith(github.ref, 'refs/tags/')
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# working-directory: rust/crates/langsmith_pyo3
# command: upload
# args: --non-interactive --skip-existing wheels-*/*

0 comments on commit a4ee96a

Please sign in to comment.