Skip to content

Commit 940eddb

Browse files
authored
Improved release workflow to work with download/upload actions v4 (#1266)
1 parent 374b3e3 commit 940eddb

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/build-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: make -C packaging info
4242
- uses: actions/upload-artifact@v4
4343
with:
44-
name: package-${{ matrix.BUILD_ARCH }}
44+
name: packages-${{ matrix.BUILD_ARCH }}
4545
path: |
4646
build/packages/*
4747
!build/packages/**/*.sha512

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,19 @@ jobs:
5252
contents: write
5353
steps:
5454
- uses: actions/checkout@v4
55-
- uses: actions/download-artifact@v4
55+
56+
- name: Download package artifacts
57+
uses: actions/download-artifact@v4
5658
with:
57-
pattern: package-*
59+
pattern: packages-*
5860
path: ${{ env.BUILD_PACKAGES }}
61+
- name: Moving packages out of folders
62+
run: |
63+
pushd ${{ env.BUILD_PACKAGES }}
64+
find . -mindepth 2 -type f -exec mv -t . {} +
65+
find . -mindepth 1 -maxdepth 1 -type d -exec rm -r {} +
66+
popd
67+
ls -R ${{ env.BUILD_PACKAGES }}
5968
6069
- name: generate build provenance
6170
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0

0 commit comments

Comments
 (0)