# docs is script-driven, not make-driven: the gate is .amadan/ci.d/10-gate # and the release build is scripts/build-release.sh, which builds from a # `git archive` of the revision rather than from the working tree — so a # release can never pick up an uncommitted edit, and there is no # dirty-tree case to refuse. # # This Makefile exists so that `make release` means the same thing in # docs as it does in calendar, home, meet, memoria, sheets and slides. # It delegates rather than restating the build: two definitions of how # docs ships would drift, and the one in the script is the one CI uses. APP := docs RELEASE_GOOS ?= linux RELEASE_GOARCH ?= arm64 RELEASE_BIN := releases/$(APP)-$(RELEASE_GOOS)-$(RELEASE_GOARCH) .PHONY: release release: @mkdir -p releases GOOS=$(RELEASE_GOOS) GOARCH=$(RELEASE_GOARCH) ./scripts/build-release.sh $(RELEASE_BIN) $(REVISION) @echo "publish it with:" @echo " amadan release create -repo oficina/$(APP) -notes-file NOTES.md $(RELEASE_BIN)"