.PHONY: gh-make-release .ONESHELL: gh-make-release gh-make-release: ifndef CI $(error must be running in CI) endif ifneq ($(shell git rev-parse --abbrev-ref HEAD),release-v$(VERSION)) $(error must be running on release-v$(VERSION) branch) endif $(info $(M) updating files with release version [$(GIT_BRANCH)]) @ git commit -m "ci: update files to version $(VERSION)" Cargo.toml nginx-sys/Cargo.toml git push origin "release-v$(VERSION)" git tag -a "v$(VERSION)" -m "ci: tagging v$(VERSION)" git push origin --tags gh release create "v$(VERSION)" \ --title "v$(VERSION)" \ --notes-file $(CURDIR)/target/dist/release_notes.md