mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-26 17:08:01 +02:00
Improve build output
This commit is contained in:
parent
c39b85e2a6
commit
5ff6a50d32
1 changed files with 5 additions and 6 deletions
11
Makefile
11
Makefile
|
@ -33,7 +33,6 @@ _release:
|
||||||
echo "❗User Error: Please specify a version number (e.g. make _release v0.0.5)"; \
|
echo "❗User Error: Please specify a version number (e.g. make _release v0.0.5)"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
@echo ""
|
|
||||||
$(eval VERSION := $(filter-out $@,$(MAKECMDGOALS)))
|
$(eval VERSION := $(filter-out $@,$(MAKECMDGOALS)))
|
||||||
@if [ "$$(git branch --show-current)" != "main" ]; then \
|
@if [ "$$(git branch --show-current)" != "main" ]; then \
|
||||||
echo "❗User Error: Releases can only be made from the main branch"; \
|
echo "❗User Error: Releases can only be made from the main branch"; \
|
||||||
|
@ -45,15 +44,15 @@ _release:
|
||||||
fi; \
|
fi; \
|
||||||
$(MAKE) build
|
$(MAKE) build
|
||||||
@echo ""
|
@echo ""
|
||||||
sed -i '' "s/# Version: .*/# Version: $(VERSION)/" $(OUTPUT); \
|
@sed -i '' "s/# Version: .*/# Version: $(VERSION)/" $(OUTPUT); \
|
||||||
sed -i '' -E "s/v[0-9]+\.[0-9]+\.[0-9]+/$(VERSION)/" $(README); \
|
sed -i '' -E "s/v[0-9]+\.[0-9]+\.[0-9]+/$(VERSION)/" $(README)
|
||||||
git add $(OUTPUT) $(README); \
|
@git add $(OUTPUT) $(README); \
|
||||||
git commit -m "Release $(VERSION)"; \
|
git commit -m "Release $(VERSION)"; \
|
||||||
git tag -a "$(VERSION)" -m "Release $(VERSION)"
|
git tag -a "$(VERSION)" -m "Release $(VERSION)"
|
||||||
@echo ""
|
@echo ""
|
||||||
git push --follow-tags
|
@git push --follow-tags
|
||||||
@echo ""
|
@echo ""
|
||||||
gh release create "$(VERSION)" --generate-notes --title "⚡ $(VERSION)" "$(OUTPUT)#beddu.sh"
|
@gh release create "$(VERSION)" --generate-notes --title "⚡ $(VERSION)" "$(OUTPUT)#beddu.sh"
|
||||||
@echo "\n\033[32m✔︎\033[0m Release complete: \033[32m$(VERSION)\033[0m"
|
@echo "\n\033[32m✔︎\033[0m Release complete: \033[32m$(VERSION)\033[0m"
|
||||||
|
|
||||||
# Get the last version tag and increment the appropriate part
|
# Get the last version tag and increment the appropriate part
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue