-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
SEMVER = go run github.com/maykonlf/semver-cli/cmd/semver@latest | ||
|
||
.PHONY: patch | ||
patch: | ||
@if [ "$$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi | ||
git pull -r | ||
semver up release | ||
$(SEMVER) up release | ||
|
||
.PHONY: minor | ||
minor: | ||
@if [ "$$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi | ||
git pull -r | ||
semver up minor | ||
#git pull -r | ||
$(SEMVER) up minor | ||
|
||
.PHONY: release | ||
major: | ||
@if [ "$$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi | ||
git pull -r | ||
semver up major | ||
$(SEMVER) up major | ||
|
||
.PHONY: release | ||
release: | ||
sed -i "/<releases>/a \ <release version=\"$$(semver get release)\" date=\"$$(date +%F)\"/>" dev.skynomads.Seabird.appdata.xml | ||
sed -i "/<releases>/a \ <release version=\"$$($(SEMVER) get release)\" date=\"$$(date +%F)\"/>" dev.skynomads.Seabird.appdata.xml | ||
git add .semver.yaml dev.skynomads.Seabird.appdata.xml | ||
git commit -m "$$(semver get release)" | ||
git tag -a -m "$$(semver get release)" "$$(semver get release)" | ||
git commit -m "$$($(SEMVER) get release)" | ||
git tag -a -m "$$($(SEMVER) get release)" "$$($(SEMVER) get release)" |