Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ jobs:
chainloop attestation add --name $material_name --value $entry --kind ARTIFACT --attestation-id ${{ env.ATTESTATION_ID }}
done

- name: Publish release
env:
RELEASE_TAG: ${{ github.ref_name }}
run: |
# goreleaser creates the release as a draft. Publish it after all
# assets are uploaded: an immutable release cannot get new assets.
gh release edit "$RELEASE_TAG" --draft=false --latest

- name: Include source code on attestation
env:
ATTESTATION_ID: ${{ steps.init_attestation.outputs.attestation_id }}
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,9 @@ docker_manifests:
- "ghcr.io/chainloop-dev/chainloop/cli:{{ .Tag }}-arm64"

release:
# The release workflow uploads the SBOMs after goreleaser and then publishes
# the release, so the release does not change after it is published.
draft: true
replace_existing_draft: true
extra_files:
- glob: ./.github/workflows/cosign.pub
Loading