Skip to content

Commit 2482cc5

Browse files
aquint-zamafd0r
authored andcommitted
chore: handle slsa artifacts separately
1 parent c7f4a27 commit 2482cc5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ jobs:
413413
mkdir -p "${ARTIFACTS_PACKAGED_DIR}"
414414
echo "ARTIFACTS_PACKAGED_DIR=${ARTIFACTS_PACKAGED_DIR}" >> "$GITHUB_ENV"
415415
416+
ARTIFACTS_SLSA_DIR=/tmp/release_artifacts/slsa
417+
mkdir -p "${ARTIFACTS_SLSA_DIR}"
418+
echo "ARTIFACTS_SLSA_DIR=${ARTIFACTS_SLSA_DIR}" >> "$GITHUB_ENV"
419+
416420
- name: Download changelog
417421
if: ${{ success() && !cancelled() }}
418422
id: download-changelog
@@ -435,7 +439,7 @@ jobs:
435439
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
436440
with:
437441
pattern: '*.intoto.jsonl'
438-
path: ${{ env.ARTIFACTS_PACKAGED_DIR }}/
442+
path: ${{ env.ARTIFACTS_SLSA_DIR }}/
439443

440444
- name: Copy wheel to docker build context
441445
run: |
@@ -553,14 +557,16 @@ jobs:
553557
--repo ${{ github.repository }} \
554558
--verify-tag ${{ env.GIT_TAG }} \
555559
--title ${{ env.GIT_TAG }} \
556-
${{ env.ARTIFACTS_PACKAGED_DIR }}/*
560+
${{ env.ARTIFACTS_PACKAGED_DIR }}/* \
561+
${{ env.ARTIFACTS_SLSA_DIR }}/*.intoto.jsonl/*
557562
else
558563
gh release create \
559564
--notes-file ${{ env.RELEASE_BODY_FILE }} \
560565
--repo ${{ github.repository }} \
561566
--verify-tag ${{ env.GIT_TAG }} \
562567
--title ${{ env.GIT_TAG }} \
563-
${{ env.ARTIFACTS_PACKAGED_DIR }}/*
568+
${{ env.ARTIFACTS_PACKAGED_DIR }}/* \
569+
${{ env.ARTIFACTS_SLSA_DIR }}/*.intoto.jsonl/*
564570
fi
565571
566572
- name: Get release link

0 commit comments

Comments
 (0)