Skip to content

Commit

Permalink
chore: fix release ci and process
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft authored and fd0r committed Jun 30, 2023
1 parent 97a31a0 commit 87382b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions docs/developer-guide/project_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 :

<!-- We already cloned the repo just above -->

<!--pytest-codeblocks:skip-->

```bash
GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/zama-ai/concrete-ml
```
Expand Down

0 comments on commit 87382b6

Please sign in to comment.