-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix github release ci * add changelog update command and doc
- Loading branch information
Showing
5 changed files
with
73 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Pass arguments to make: https://stackoverflow.com/a/6273809 | ||
|
||
changelog: | ||
@echo "Updating CHANGELOG.md..." | ||
|
||
@# Generate CHANGELOG.temp | ||
@loghub ghiggi/pycolorbar | ||
|
||
@# Put version in CHANGELOG.temp | ||
@sed -i 's/<RELEASE_VERSION>/$(filter-out $@,$(MAKECMDGOALS))/g' CHANGELOG.temp | ||
|
||
@# Remove "# Changelog" header from CHANGELOG.md | ||
@sed -i '/# Changelog/d' CHANGELOG.md | ||
|
||
@# Append CHANGELOG.temp to the top of CHANGELOG.md | ||
@cat CHANGELOG.md >> CHANGELOG.temp | ||
@mv CHANGELOG.temp CHANGELOG.md | ||
|
||
@# Add "# Changelog" header to CHANGELOG.md | ||
@sed -i '1s/^/# Changelog\n\n/' CHANGELOG.md | ||
|
||
@echo "Done." | ||
|
||
%: | ||
@: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ dev = [ | |
"setuptools", | ||
"build", | ||
"twine", | ||
"loghub", | ||
] | ||
|
||
[project.urls] | ||
|