Skip to content

Commit

Permalink
chore(ci): Fix python release cycle (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
wackywendell authored Nov 8, 2024
1 parent 0ffbb83 commit 3af14f1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,15 @@ jobs:
- name: Test
working-directory: py/tests
run: python3 -m pytest
- name: Display structure of dist directory
run: ls -R dist
- name: Upload wheels
if: "startsWith(github.ref, 'refs/tags/')"
uses: actions/upload-artifact@v4
with:
name: wheels
# Ensure we have a different name for every artifact, by using the
# matrix components in the artifact name
name: binary-${{ matrix.type }}-${{ matrix.os }}-${{ matrix.python-version }}
path: dist

release:
Expand All @@ -111,7 +115,11 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: binary-*
# Download them all into the current directory
merge-multiple: true
- name: Display available artifacts
run: ls -R .
- name: Publish to GitHub release page
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 3af14f1

Please sign in to comment.