Bump version 0.5 -> 0.6
This commit is contained in:
parent
2bd9cb93bf
commit
48ac474872
1 changed files with 11 additions and 10 deletions
21
Makefile
21
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue