From 01ad89209a80be8695342427d5b2c153c72b4121 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 30 Sep 2020 17:46:55 -0400 Subject: [PATCH] ci: publish in two steps --- .github/workflows/pip.yml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index 4faef1c70..4414a12ee 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -63,9 +63,18 @@ jobs: - name: Check metadata run: twine check dist/* - - uses: actions/upload-artifact@v2 + - name: Save standard package + uses: actions/upload-artifact@v2 with: - path: dist/* + name: standard + path: dist/pybind11-* + + - name: Save global package + uses: actions/upload-artifact@v2 + with: + name: global + path: dist/pybind11_global-* + # When a GitHub release is made, upload the artifacts to PyPI @@ -78,12 +87,17 @@ jobs: steps: - uses: actions/setup-python@v2 + # Downloads all to directories matching the artifact names - uses: actions/download-artifact@v2 - with: - path: dist - name: artifact - - uses: pypa/gh-action-pypi-publish@v1.4.1 + - name: Publish standard package + uses: pypa/gh-action-pypi-publish@v1.4.1 with: - user: __token__ password: ${{ secrets.pypi_password }} + packages_dir: standard/ + + - name: Publish global package + uses: pypa/gh-action-pypi-publish@v1.4.1 + with: + password: ${{ secrets.pypi_password_global }} + packages_dir: global/