Skip to content

Commit

Permalink
fix build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WirajanDASILVA committed Jan 19, 2024
1 parent 2a04cfe commit 5f5afd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
Expand All @@ -40,7 +40,9 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build sdist
run: pipx run build --sdist
Expand All @@ -51,6 +53,7 @@ jobs:
path: dist/*.tar.gz

upload_pypi:
name: Upload to PyPi
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment: pypi
Expand All @@ -63,11 +66,10 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
path: dist/

- name: Display structure of downloaded files
run: ls -R dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
# To test: repository_url: https://test.pypi.org/legacy/
packages-dir: dist/*
5 changes: 1 addition & 4 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -68,10 +68,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
# unpacks all CIBW artifacts into dist/
# pattern: cibw-*
path: dist/
# merge-multiple: true
- name: Display structure of downloaded files
run: ls -R dist

Expand Down

0 comments on commit 5f5afd7

Please sign in to comment.