diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 68e411ebd..d1d0a51ec 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,7 +25,8 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install Chainloop run: | - curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s + # Need the ee CLI to have access to project management capabilities + curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --ee - name: Initialize Attestation id: init_attestation @@ -161,6 +162,12 @@ jobs: gh release download ${{ github.ref_name }} -A tar.gz -O /tmp/source-code.tar.gz chainloop attestation add --name source-code --value /tmp/source-code.tar.gz --kind ARTIFACT --attestation-id ${{ env.ATTESTATION_ID }} + - name: Promote Chainloop Project Version + run: | + current_version="$(cat .chainloop.yml | awk '/^projectVersion:/ {print $2}')" + # Rename the existing pre-release into the actual release name + chainloop project version update --project ${CHAINLOOP_PROJECT_NAME} --name $current_version --new-name ${{ github.ref_name }} || true + - name: Bump Chart and Dagger Version run: .github/workflows/utils/bump-chart-and-dagger-version.sh deployment/chainloop extras/dagger ${{ github.ref_name }} - name: Bump Project Version