Skip to content

Commit

Permalink
github: workflows: action: Update upload-artifact to v4 and avoid usi…
Browse files Browse the repository at this point in the history
…ng same artifact name between multiple action

Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jan 20, 2025
1 parent 19c1290 commit 9f683fe
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ jobs:
mv output/* "dist/${{ matrix.TARGET }}"
mv target/release/bindings.h dist/
- name: Upload bin
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cpp
name: cpp-${{ matrix.TARGET }}
path: dist

build-python:
Expand Down Expand Up @@ -172,9 +172,9 @@ jobs:
pip3 install -U pip
pip3 install bluerobotics_navigator --no-index --find-links dist/ --force-reinstall
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python
name: python-${{ matrix.TARGET }}-${{ matrix.libc }}
path: dist

raspberry-test-python:
Expand All @@ -186,9 +186,9 @@ jobs:
with:
ref: ${{ needs.version-manager.outputs.head_hash }}
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python
name: python-armv7-auto
path: dist
- name: Install built wheel
run: |
Expand All @@ -208,9 +208,9 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: python
name: python-armv7-auto
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand All @@ -222,14 +222,14 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
steps:
- name: Download cpp artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: cpp
name: cpp-armv7-unknown-linux-gnueabihf
path: cpp
- name: Download python artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: python
name: python-armv7-auto
path: python
- name: Compress artifacts
run: |
Expand Down

0 comments on commit 9f683fe

Please sign in to comment.