Skip to content

Commit

Permalink
chore: update shipit script and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kardolus committed Nov 5, 2024
1 parent 5352a70 commit 76d3d4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ integration: ## Run integration tests
reinstall: ## Reinstall binaries (default target OS: darwin)
./scripts/reinstall.sh $(TARGET_OS)

.PHONY: shipit

shipit: ## Run the release script, create binaries, and generate release notes
./scripts/shipit.sh
./scripts/shipit.sh $(version) "$(message)"

unit: ## Run unit tests
./scripts/unit.sh
Expand Down
7 changes: 1 addition & 6 deletions docs/release_procedures.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
Execute the Ship-It script to prepare the release:

```shell
make shipit <tag> <message>
```

example:
```shell
make shipit v1.0.5 "Add list-models flag"
make shipit version=v1.0.0 message="bla bla"
```

## 2. Create a GitHub release
Expand Down
6 changes: 1 addition & 5 deletions scripts/shipit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ fi
TAG="$1"
MESSAGE="$2"

echo TAG
echo MESSAGE
exit 0

# Step 5: Create and push git tag
echo "Creating git tag..."
git tag -a "$TAG" -m "$MESSAGE"
Expand All @@ -43,6 +39,6 @@ echo "Creating binaries..."

# Step 7: Generate release notes by diffing from the latest tag to HEAD
echo "Generating release notes..."
git diff $(git rev-list --tags --max-count=1)..HEAD | chatgpt -n -p ../prompts/write_release_notes.md for the 'how to update' section explain you can use brew upgrade chatgpt-cli or do a direct download of the binaries for your specific OS.
git diff $(git rev-list --tags --max-count=1)..HEAD -- . ":(exclude)vendor" | chatgpt -n -p ../prompts/write_release_notes.md for the 'how to update' section explain you can use brew upgrade chatgpt-cli or do a direct download of the binaries for your specific OS. The version we are releasing is "$TAG"

echo "Release complete. Tag $TAG has been created, pushed, and binaries are ready."

0 comments on commit 76d3d4b

Please sign in to comment.