From 87382b659404f1401de04232e83c5656583aed9d Mon Sep 17 00:00:00 2001 From: Roman <56846628+RomanBredehoft@users.noreply.github.com> Date: Thu, 29 Jun 2023 15:20:22 +0200 Subject: [PATCH] chore: fix release ci and process --- Makefile | 12 +++++++++--- docs/developer-guide/project_setup.md | 4 ++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 130c1d1e1..8af2e76bf 100644 --- a/Makefile +++ b/Makefile @@ -540,15 +540,21 @@ changelog: check_version_coherence PROJECT_VER="$${PROJECT_VER[1]}" && \ poetry run python ./script/make_utils/changelog_helper.py > "CHANGELOG_$${PROJECT_VER}.md" -.PHONY: release # Create a new release -release: check_version_coherence check_apidocs +.PHONY: release_no_push # Create a new release without pushing the tag +release_no_push: check_version_coherence check_apidocs @PROJECT_VER=($$(poetry version)) && \ PROJECT_VER="$${PROJECT_VER[1]}" && \ TAG_NAME="v$${PROJECT_VER}" && \ git fetch --tags --force && \ - git tag -s -a -m "$${TAG_NAME} release" "$${TAG_NAME}" && \ + git tag -s -a -m "$${TAG_NAME} release" "$${TAG_NAME}" + +.PHONY: release # Create a new release from the private repo +release: release_no_push git push origin "refs/tags/$${TAG_NAME}" +.PHONY: release # Create a new release from the public repo +public_release: release_no_push + git push public "refs/tags/$${TAG_NAME}" .PHONY: show_scope # Show the accepted types and optional scopes (for git conventional commits) show_scope: diff --git a/docs/developer-guide/project_setup.md b/docs/developer-guide/project_setup.md index 9127917b3..e2d5d5aac 100644 --- a/docs/developer-guide/project_setup.md +++ b/docs/developer-guide/project_setup.md @@ -19,6 +19,10 @@ git clone https://github.com/zama-ai/concrete-ml Several files are tracked by [git-lfs](https://git-lfs.github.com/). While a few are required for running some tests, most of them are used for benchmarking and use case examples. By default, `git clone` downloads all LFS files, which can add up to several hundreds of MB to the directory. Is it however possible to disable such behavior by running the running the following command instead : + + + + ```bash GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/zama-ai/concrete-ml ```