From d789870107276cebc31717204c095e1a4c950d48 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Mon, 13 Jun 2022 20:37:03 +0300 Subject: [PATCH] Clarify upload/download actions and bump versions Not using latest setup-python@v4 as it wants explicit version, making scripts too verbose, so sticking to `setup-python@v3` that allows to use default Python Co-authored-by: Matthieu Darbois --- README.md | 2 +- docs/setup.md | 2 +- examples/github-deploy.yml | 15 +++++++++------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 165fa0289..a3c051280 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ jobs: - uses: actions/checkout@v2 # Used to host cibuildwheel - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v3 - name: Install cibuildwheel run: python -m pip install cibuildwheel==2.7.0 diff --git a/docs/setup.md b/docs/setup.md index c372522fb..152c6ce12 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -215,7 +215,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/ - uses: actions/checkout@v3 # Used to host cibuildwheel - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v3 - name: Install cibuildwheel run: python -m pip install cibuildwheel==2.7.0 diff --git a/examples/github-deploy.yml b/examples/github-deploy.yml index 024336f65..8babdd761 100644 --- a/examples/github-deploy.yml +++ b/examples/github-deploy.yml @@ -19,26 +19,28 @@ jobs: os: [ubuntu-20.04, windows-2019, macos-10.15] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build wheels uses: pypa/cibuildwheel@v2.7.0 - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: + name: wheels path: ./wheelhouse/*.whl build_sdist: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: + name: wheels path: dist/*.tar.gz upload_pypi: @@ -49,9 +51,10 @@ jobs: # alternatively, to publish when a GitHub Release is created, use the following rule: # if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: - name: artifact + name: wheels + # unpack all artifacts into dist/ path: dist - uses: pypa/gh-action-pypi-publish@v1.4.2