Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ on:
required: false
default: 'ubuntu-latest'
type: string
upload_artifact:
description: Upload the built wheels as artifacts
required: false
default: false
type: boolean
upload_to_pypi:
description: A condition specifying whether to upload to PyPI
required: false
Expand Down Expand Up @@ -207,7 +212,7 @@ jobs:
CIBW_ARCHS: ${{ matrix.CIBW_ARCHS }}
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: |
needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda
needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda || inputs.upload_artifact
with:
name: "dist-${{ matrix.artifact-name }}"
path: dist/*
Expand Down Expand Up @@ -252,7 +257,7 @@ jobs:
python-version: '3.12'
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: |
needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda
needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda || inputs.upload_artifact
with:
name: dist-sdist
path: dist/*
Expand Down
6 changes: 6 additions & 0 deletions docs/source/publish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ repository_url

The PyPI repository URL to use. Default is the main PyPI repository.

upload_artifact
^^^^^^^^^^^^^^^

Whether to upload the wheels as github artifacts. The default is to not
upload (unless ``upload_to_anaconda`` or ``upload_to_pypi`` is enabled).

upload_to_anaconda
^^^^^^^^^^^^^^^^^^

Expand Down
Loading