Skip to content

Commit

Permalink
Update to v4 of the upload and download artifacts actions
Browse files Browse the repository at this point in the history
These actions require artifact names to be unique across runs.
We achieve this by uploading unique names, then downloading all of them.

Signed-off-by: Nic Cope <[email protected]>
  • Loading branch information
negz committed Jan 2, 2024
1 parent 3207722 commit 90abb4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ jobs:
run: ./crossplane xpkg build --package-file=${{ matrix.arch }}.xpkg --package-root=package/ --embed-runtime-image-tarball=runtime-${{ matrix.arch }}.tar

- name: Upload Single-Platform Package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages
name: package-${{ matrix.arch }}
path: "*.xpkg"
if-no-files-found: error
retention-days: 1
Expand All @@ -135,10 +135,10 @@ jobs:
uses: actions/checkout@v4

- name: Download Single-Platform Packages
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: packages
path: .
merge-multiple: true

- name: Setup the Crossplane CLI
run: "curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh"
Expand Down

0 comments on commit 90abb4b

Please sign in to comment.