Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing names and paths for github actions #46

Merged
merged 3 commits into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build and upload to PyPI

# Build on every branch push, tag push, and pull request change:
# Build on every pull request change:
on: [push, pull_request]

jobs:
Expand Down Expand Up @@ -35,9 +35,12 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]

- uses: actions/upload-artifact@v4
- name: Upload wheels artifacts
# Upload wheels only on tag push
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.os }}
name: bigml_sensenet-${{ github.ref_name }}-${{ matrix.build }}-${{ matrix.os }}_${{ matrix.arch }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -49,9 +52,12 @@ jobs:
- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
- name: Upload sdist artifacts
# Upload sdist only on tag push
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.os }}
name: bigml_sensenet-${{ github.ref_name }}
path: dist/*.tar.gz

upload_pypi:
Expand All @@ -62,8 +68,12 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: artifact-*
path: all

- name: Merge files
run: |
mkdir dist
mv all/*/* dist/.

- uses: pypa/[email protected]
with:
Expand Down
Loading