Skip to content

Commit

Permalink
Update release target
Browse files Browse the repository at this point in the history
  • Loading branch information
serra committed Oct 14, 2024
1 parent 548cf38 commit 2869ea6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Updated Makefile to continue the release process even when there are no changes to commit
- Updated Makefile to only add and commit CHANGELOG.md during release process if it has been changed

## [0.12.2] - 2024-10-11

Expand Down
6 changes: 4 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ release: documentation
fi
@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}" -f
if [ -n "$$(git status --porcelain CHANGELOG.md)" ]; then \
git add CHANGELOG.md && \
git commit -m "Update CHANGELOG.md for version $${NEW_VERSION}"; \
fi
git tag v$${NEW_VERSION} && \
git push origin main --tags
docker_image:
Expand Down

0 comments on commit 2869ea6

Please sign in to comment.