mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
ci: publish in two steps
This commit is contained in:
parent
319b99648b
commit
01ad89209a
28
.github/workflows/pip.yml
vendored
28
.github/workflows/pip.yml
vendored
@ -63,9 +63,18 @@ jobs:
|
|||||||
- name: Check metadata
|
- name: Check metadata
|
||||||
run: twine check dist/*
|
run: twine check dist/*
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Save standard package
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
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
|
# When a GitHub release is made, upload the artifacts to PyPI
|
||||||
@ -78,12 +87,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
|
|
||||||
|
# Downloads all to directories matching the artifact names
|
||||||
- uses: actions/download-artifact@v2
|
- 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:
|
with:
|
||||||
user: __token__
|
|
||||||
password: ${{ secrets.pypi_password }}
|
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/
|
||||||
|
Loading…
Reference in New Issue
Block a user