Publish to TestPyPI after wheels are built

release/4.3a0
Yashas Ambati 2025-02-20 16:48:06 -05:00
parent d0e25bc41b
commit c17a3f80f1
2 changed files with 20 additions and 1 deletions

View File

@ -51,3 +51,22 @@ jobs:
with: with:
name: cibw-wheels-cp${{ matrix.cibw_python_version }}-${{ matrix.platform_id }} name: cibw-wheels-cp${{ matrix.cibw_python_version }}-${{ matrix.platform_id }}
path: wheelhouse/*.whl path: wheelhouse/*.whl
upload_all:
name: Upload All
needs: build_wheels
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
repository-url: https://test.pypi.org/legacy/

View File

@ -40,4 +40,4 @@ cmake $PROJECT_DIR \
-DCMAKE_INSTALL_PREFIX=$PROJECT_DIR/gtsam_install -DCMAKE_INSTALL_PREFIX=$PROJECT_DIR/gtsam_install
cd $PROJECT_DIR/build/python cd $PROJECT_DIR/build/python
make -j$(nproc) install make -j $(nproc) install