diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 3dd52d48afe..7f439a175fb 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -114,3 +114,15 @@ jobs: asset_path: keda-${{ steps.get_version.outputs.VERSION }}-core.yaml asset_name: keda-${{ steps.get_version.outputs.VERSION }}-core.yaml asset_content_type: application/x-yaml + + # Upload CRD deployment YAML file to GitHub release + - name: Upload Deployment YAML file + id: upload-crd-deployment-yaml + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: https://uploads.github.com/repos/kedacore/keda/releases/${{ steps.get-release-info.outputs.id }}/assets?name=keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml + asset_path: keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml + asset_name: keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml + asset_content_type: application/x-yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index a9f5d0cd399..5b252965c1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ To learn more about active deprecations, we recommend checking [GitHub Discussio ### Improvements - **General:**: Add ScaledObject/ScaledJob names to output of `kubectl get triggerauthentication/clustertriggerauthentication` ([#796](https://github.com/kedacore/keda/issues/796)) +- **General:**: Add standalone CRD generation to release workflow ([#2726](https://github.com/kedacore/keda/issues/2726)) ### Fixes diff --git a/Makefile b/Makefile index 061320f541a..291a94b9444 100644 --- a/Makefile +++ b/Makefile @@ -234,6 +234,7 @@ release: manifests kustomize set-version ## Produce new KEDA release in keda-$(V rm -rf config/default/kustomize-config/metadataLabelTransformer.yaml.out $(KUSTOMIZE) build config/default > keda-$(VERSION).yaml $(KUSTOMIZE) build config/minimal > keda-$(VERSION)-core.yaml + $(KUSTOMIZE) build config/crd > keda-$(VERSION)-crds.yaml sign-images: ## Sign KEDA images published on GitHub Container Registry COSIGN_EXPERIMENTAL=1 cosign sign ${COSIGN_FLAGS} $(IMAGE_CONTROLLER)