Skip to content

Commit

Permalink
chore: Updated github actions to use upload-artifact/merge@4
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidmt committed Feb 13, 2024
1 parent e143548 commit fe07399
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/python-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.runs-on }}
path: dist

windows:
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-windows-${{ matrix.runs-on }}
path: dist

macos:
Expand Down Expand Up @@ -213,9 +213,19 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.runs-on }}
path: dist

merge:
runs-on: ubuntu-latest
needs: [ macos, windows, linux ]
steps:
- name: Merge Artifacts
uses: actions/upload-artifacts/merge@v4
with:
name: wheels
pattern: wheels-*

test-mdbook-python:
name: Test MDBook Python Snippets
runs-on: ubuntu-latest
Expand Down Expand Up @@ -287,7 +297,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/python-')
needs: [linux, windows, macos, test-mdbook-python, test-mdbook-build]
needs: [merge, test-mdbook-python, test-mdbook-build]
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit fe07399

Please sign in to comment.