Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Allow env var to always publish #253

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
10 changes: 7 additions & 3 deletions makelib/xpkg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ else
build.artifacts.platform: do.skip.xpkgs
endif

# only publish package for main / master and release branches
# TODO(hasheddan): remove master and support overriding
ifneq ($(filter main master release-%,$(BRANCH_NAME)),)
# only publish package for main / master and release branches, unless the DO_PUBLISH override is set to true
DO_PUBLISH ?= false
ifneq ($(filter main release-%,$(BRANCH_NAME)),)
DO_PUBLISH = true
endif

ifeq ($(DO_PUBLISH),true)
publish.artifacts: $(foreach r,$(XPKG_REG_ORGS), $(foreach x,$(XPKGS),xpkg.release.publish.$(r).$(x)))
endif

Expand Down