Skip to content

Commit c738bfb

Browse files
authored
feat(release): exclude examples/ folder by default (#98)
Shows how ruleset authors can make smaller release artifacts.
1 parent 04c30c4 commit c738bfb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release_prep.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
set -o errexit -o nounset -o pipefail
44

5+
# Don't include examples in the distribution artifact, to reduce size.
6+
# You may want to add additional exclusions for folders or files that users don't need.
7+
# NB: this mechanism relies on a `git archive` feature, which is much simpler and less
8+
# error-prone than using Bazel to build a release artifact from sources in the repository.
9+
# See https://git-scm.com/docs/git-archive#ATTRIBUTES
10+
echo >>.git/info/attributes "examples export-ignore"
11+
512
# Set by GH actions, see
613
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
714
TAG=${GITHUB_REF_NAME}

0 commit comments

Comments
 (0)