Skip to content

Commit

Permalink
Merge pull request #405 from rsagroup/ci-build-upload-artifacts-compa…
Browse files Browse the repository at this point in the history
…t-publish

CI: Help publish step find the binary artifacts
  • Loading branch information
JasperVanDenBosch authored Jul 16, 2024
2 parents 82b105e + 09aba96 commit 273edfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts
path: dist
merge-multiple: true
- name: List files
run: ls -R artifacts
- name: Gather artifacts
run: |
mkdir dist
mv artifacts/source/*.tar.gz dist/
mv artifacts/wheels-macos-latest/*.whl dist/
mv artifacts/wheels-ubuntu-latest/*.whl dist/
mv artifacts/wheels-windows-latest/*.whl dist/
run: ls -R dist
- name: Publish package
uses: pypa/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/testbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ jobs:
pip install -q twine
twine check dist/*
- name: Store artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: source
name: source-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*
if-no-files-found: error
retention-days: 1
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
- name: Store artifact
uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
name: wheels-${{ matrix.os }}
path: dist/*.whl
if-no-files-found: error
retention-days: 1

0 comments on commit 273edfc

Please sign in to comment.