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 74b6090
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
22 changes: 16 additions & 6 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,13 +213,23 @@ 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
needs: [linux]
needs: [merge]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -253,7 +263,7 @@ jobs:
test-mdbook-build:
name: Test MDBook Building
runs-on: ubuntu-latest
needs: [linux]
needs: [merge]
steps:
- uses: actions/checkout@v4

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
18 changes: 9 additions & 9 deletions pylace/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74b6090

Please sign in to comment.