This repository was archived by the owner on May 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,13 @@ jobs:
27
27
# Bazelisk will download bazel to here
28
28
XDG_CACHE_HOME : ~/.cache/bazel-repo
29
29
run : ./test.sh
30
- - name : Prepare workspace snippet
31
- run : .github/workflows/workspace_snippet .sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt
30
+ - name : Prepare release
31
+ run : .github/workflows/release_prep .sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt
32
32
- name : Release
33
33
uses : softprops/action-gh-release@v1
34
34
with :
35
35
# Use GH feature to populate the changelog automatically
36
36
generate_release_notes : true
37
37
body_path : release_notes.txt
38
+ files : bazel-mypy-integration-*.tar.gz
39
+ fail_on_unmatched_files : true
Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ set -o errexit -o nounset -o pipefail
5
5
# Set by GH actions, see
6
6
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
7
7
TAG=${GITHUB_REF_NAME}
8
+ # The prefix is chosen to match what GitHub generates for source archives
8
9
PREFIX=" bazel-mypy-integration-${TAG} "
9
- SHA=$( git archive --format=tar --prefix=${PREFIX} / ${TAG} | gzip | shasum -a 256 | awk ' {print $1}' )
10
+ ARCHIVE=" bazel-mypy-integration-$TAG .tar.gz"
11
+ git archive --format=tar --prefix=${PREFIX} / ${TAG} | gzip > $ARCHIVE
12
+ SHA=$( shasum -a 256 $ARCHIVE | awk ' {print $1}' )
10
13
11
14
cat << EOF
12
15
WORKSPACE snippet:
@@ -17,7 +20,7 @@ http_archive(
17
20
name = "mypy_integration",
18
21
sha256 = "${SHA} ",
19
22
strip_prefix = "${PREFIX} ",
20
- url = "https://github.com/thundergolfer/bazel-mypy-integration/archive/refs/tags/ ${TAG} .tar.gz ",
23
+ url = "https://github.com/thundergolfer/bazel-mypy-integration/releases/download/ ${TAG} / ${ARCHIVE} ",
21
24
)
22
25
23
26
load(
You can’t perform that action at this time.
0 commit comments