Bump version 0.5 -> 0.6

This commit is contained in:
Blallo 2020-05-22 16:13:31 +02:00
parent 2bd9cb93bf
commit 48ac474872
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

View file

@ -1,5 +1,5 @@
VERS_MAJOR := 0 VERS_MAJOR := 0
VERS_MINOR := 5 VERS_MINOR := 6
VERSION := $(VERS_MAJOR).$(VERS_MINOR) VERSION := $(VERS_MAJOR).$(VERS_MINOR)
NEW_MINOR := $$(( $(VERS_MINOR) + 1 )) NEW_MINOR := $$(( $(VERS_MINOR) + 1 ))
NEW_MAJOR := $$(( $(VERS_MAJOR) + 1 )) NEW_MAJOR := $$(( $(VERS_MAJOR) + 1 ))
@ -36,15 +36,16 @@ bumpvers-major:
git tag $(NEW_MAJOR).$(VERS_MINOR) git tag $(NEW_MAJOR).$(VERS_MINOR)
new-release: new-release:
last_tag=$$(git tag|tail -n2|head -n1); \ @last_tag=$$(git tag|tail -n2|head -n1); \
release_id=$$(curl -X POST \ diffs=$$(git log --pretty=oneline --abbrev-commit $${last_tag}..HEAD~); \
release_id=$$(curl -X POST -s \
"$(GITEA_URL)/api/v1/repos/blallo/sendmail/releases" \ "$(GITEA_URL)/api/v1/repos/blallo/sendmail/releases" \
-H "Authorization: token $$(cat .token)" \ -H "Authorization: token $$(cat .token)" \
-H "accept: application/json" \ -H "accept: application/json" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"body\": \"$$(git log $${last_tag}..HEAD~)\", \"draft\": false, \"name\": \"$(VERSION)\", \"prerelease\": false, \"tag_name\": \"$(VERSION)\", \"target_commitish\": \"$$(git rev-parse HEAD)\" }") \ -d "{\"body\": \"${diffs}\", \"draft\": false, \"name\": \"$(VERSION)\", \"prerelease\": false, \"tag_name\": \"$(VERSION)\", \"target_commitish\": \"$$(git rev-parse HEAD)\" }" \
| jq '.id'; \ | jq '.id'); \
curl -X POST \ curl -X POST -s \
"$(GITEA_URL)/api/v1/repos/blallo/sendmail/releases/$${release_id}/assets?name=sendmail" \ "$(GITEA_URL)/api/v1/repos/blallo/sendmail/releases/$${release_id}/assets?name=sendmail" \
-H "Authorization: token $$(cat .token)" \ -H "Authorization: token $$(cat .token)" \
-H "accept: application/json" \ -H "accept: application/json" \
@ -55,16 +56,16 @@ release-min:
make bumpvers-minor make bumpvers-minor
make build make build
make docker-build make docker-build
git push git push unit
git push --tags git push --tags unit
make new-release make new-release
release-maj: release-maj:
make bumpvers-major make bumpvers-major
make build make build
make docker-build make docker-build
git push git push unit
git push --tags git push --tags unit
make new-release make new-release
PHONY: bumpvers-minor bumpvers-major release-min release-maj clean docker-build new-release PHONY: bumpvers-minor bumpvers-major release-min release-maj clean docker-build new-release