Skip to content

Commit

Permalink
add version target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lionello committed Jul 2, 2024
1 parent 490c862 commit d369127
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,16 @@ defang_darwin.zip: defang-arm64 defang-amd64

.PHONY: zips
zips: defang_linux_amd64.zip defang_darwin.zip

.PHONY: no-diff
no-diff:
git diff-index --quiet HEAD -- # check that there are no uncommitted changes

.PHONY: pull
pull:
git pull

.PHONY: version
version: no-diff pull test
git tag $$(git tag -l 'v*' --sort=-v:refname | head -n1 | awk -F. '{$$NF = $$NF + 1;} 1' OFS=.)
git push --follow-tags

0 comments on commit d369127

Please sign in to comment.