Skip to content

Commit

Permalink
chore: update actions/upload-artifact & actions/download-artifact (
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut authored Dec 23, 2023
1 parent 402c64b commit a111997
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ jobs:
CIBW_BUILD: "${{ matrix.build && '*-' || ''}}${{ matrix.build }}*"
CIBW_PRERELEASE_PYTHONS: "${{ !startsWith(github.ref, 'refs/tags/v') }}"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: "cibw-wheels ${{ matrix.build || matrix.os }} ${{ matrix.archs }}"
path: ./wheelhouse/*.whl

build_sdist:
Expand Down Expand Up @@ -91,8 +92,9 @@ jobs:
python -m pip install -r requirements-test.txt
pytest
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz

upload_test_pypi:
Expand All @@ -106,10 +108,12 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
- name: Upload to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
Expand All @@ -127,10 +131,12 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
Expand Down

0 comments on commit a111997

Please sign in to comment.