Skip to content

Commit

Permalink
feat(release): exclude examples/ folder by default (#98)
Browse files Browse the repository at this point in the history
Shows how ruleset authors can make smaller release artifacts.
  • Loading branch information
alexeagle authored Sep 29, 2023
1 parent 04c30c4 commit c738bfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

set -o errexit -o nounset -o pipefail

# Don't include examples in the distribution artifact, to reduce size.
# You may want to add additional exclusions for folders or files that users don't need.
# NB: this mechanism relies on a `git archive` feature, which is much simpler and less
# error-prone than using Bazel to build a release artifact from sources in the repository.
# See https://git-scm.com/docs/git-archive#ATTRIBUTES
echo >>.git/info/attributes "examples export-ignore"

# Set by GH actions, see
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
TAG=${GITHUB_REF_NAME}
Expand Down

0 comments on commit c738bfb

Please sign in to comment.