Skip to content

Commit

Permalink
Automatically update the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
serra committed Oct 10, 2024
1 parent 045b2e9 commit 56f1bf3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- New script `scripts/verify_env_vars.py` to verify environment variables
- Deployment directory with documentation and configuration files for Serra Vine deployment
- Automatic CHANGELOG.md update process in Makefile for releases

### Removed

- Minio functionality has been completely removed from the project

### Changed

- Updated Makefile to automatically update CHANGELOG.md during the release process
8 changes: 6 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ release: documentation
echo "Local branch is ahead of origin"; \
exit 1; \
fi
@git tag v$$(python -m setuptools_scm --strip-dev)
@git push origin main --tags
@NEW_VERSION=$$(python -m setuptools_scm --strip-dev) && \
sed -i '' "s/\[Unreleased\]/[$${NEW_VERSION}] - $$(date +%Y-%m-%d)/" CHANGELOG.md && \
git add CHANGELOG.md && \
git commit -m "Update CHANGELOG.md for version $${NEW_VERSION}" && \
git tag v$${NEW_VERSION} && \
git push origin main --tags
docker_image:
docker build -t ghcr.io/serraict/vine-floriday-adapter:$(VERSION) .
docker_push: docker_image
Expand Down

0 comments on commit 56f1bf3

Please sign in to comment.