Skip to content

Commit

Permalink
chore: handle slsa artifacts separately
Browse files Browse the repository at this point in the history
  • Loading branch information
aquint-zama authored and fd0r committed Jun 23, 2024
1 parent c7f4a27 commit 2482cc5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ jobs:
mkdir -p "${ARTIFACTS_PACKAGED_DIR}"
echo "ARTIFACTS_PACKAGED_DIR=${ARTIFACTS_PACKAGED_DIR}" >> "$GITHUB_ENV"
ARTIFACTS_SLSA_DIR=/tmp/release_artifacts/slsa
mkdir -p "${ARTIFACTS_SLSA_DIR}"
echo "ARTIFACTS_SLSA_DIR=${ARTIFACTS_SLSA_DIR}" >> "$GITHUB_ENV"
- name: Download changelog
if: ${{ success() && !cancelled() }}
id: download-changelog
Expand All @@ -435,7 +439,7 @@ jobs:
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
pattern: '*.intoto.jsonl'
path: ${{ env.ARTIFACTS_PACKAGED_DIR }}/
path: ${{ env.ARTIFACTS_SLSA_DIR }}/

- name: Copy wheel to docker build context
run: |
Expand Down Expand Up @@ -553,14 +557,16 @@ jobs:
--repo ${{ github.repository }} \
--verify-tag ${{ env.GIT_TAG }} \
--title ${{ env.GIT_TAG }} \
${{ env.ARTIFACTS_PACKAGED_DIR }}/*
${{ env.ARTIFACTS_PACKAGED_DIR }}/* \
${{ env.ARTIFACTS_SLSA_DIR }}/*.intoto.jsonl/*
else
gh release create \
--notes-file ${{ env.RELEASE_BODY_FILE }} \
--repo ${{ github.repository }} \
--verify-tag ${{ env.GIT_TAG }} \
--title ${{ env.GIT_TAG }} \
${{ env.ARTIFACTS_PACKAGED_DIR }}/*
${{ env.ARTIFACTS_PACKAGED_DIR }}/* \
${{ env.ARTIFACTS_SLSA_DIR }}/*.intoto.jsonl/*
fi
- name: Get release link
Expand Down

0 comments on commit 2482cc5

Please sign in to comment.