Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add release make task #1

Merged
merged 1 commit into from
Oct 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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