fix release_prep.sh further
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e8f86e7 --- /dev/null +++ b/.gitattributes
@@ -0,0 +1,10 @@ +# In code review, collapse generated files +docs/*.md linguist-generated=true + +################################# +# Configuration for 'git archive' +# See https://git-scm.com/docs/git-archive#ATTRIBUTES + +# 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. +examples export-ignore
diff --git a/.github/workflows/release_prep.sh b/.github/workflows/release_prep.sh index b3afa88..7d7ad69 100755 --- a/.github/workflows/release_prep.sh +++ b/.github/workflows/release_prep.sh
@@ -5,11 +5,10 @@ set -o errexit -o nounset -o pipefail -TAG=${GITHUB_REF_NAME} +TAG="${GITHUB_REF_NAME}" PREFIX="rules_multilint-${TAG:1}" -ARCHIVE="rules_multilint-$TAG.tar.gz" +ARCHIVE="rules_multilint-${TAG}.tar.gz" -# NB: configuration for 'git archive' is in /.gitattributes git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}') @@ -23,5 +22,3 @@ bazel_dep(name = "rules_multilint", version = "${TAG:1}") \`\`\` EOF - -echo "\`\`\`"