Skip to content

Commit

Permalink
ci: Add release make task (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
twelvelabs authored Oct 25, 2022
1 parent e574e64 commit f33c25c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,20 @@ run: ## Run the extension
install: ## Install the extension
gh extension install .

.PHONY: release
release: ## Create a new GitHub release
git fetch --all --tags
@if ! command -v svu >/dev/null 2>&1; then echo "Unable to find svu!"; exit 1; fi
@if [[ "$$(svu next)" == "$$(svu current)" ]]; then echo "Nothing to release!" && exit 1; fi
gh release create "$$(svu next)" --generate-notes


##@ Other

.PHONY: setup
setup: ## Bootstrap for local development
@if ! command -v gh >/dev/null 2>&1; then echo "Unable to find gh!"; exit 1; fi
@if ! command -v git >/dev/null 2>&1; then echo "Unable to find git!"; exit 1; fi
git submodule update --init --recursive

# Via https://www.thapaliya.com/en/writings/well-documented-makefiles/
Expand Down

0 comments on commit f33c25c

Please sign in to comment.