Skip to content

Commit fb686cb

Browse files
committed
fix asset naming
1 parent 252dd67 commit fb686cb

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/release.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,31 @@ jobs:
3737
env:
3838
# Bazelisk will download bazel to here
3939
XDG_CACHE_HOME: ~/.cache/bazel-repo
40-
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
4140
run: >-
4241
bazel
4342
--bazelrc=.github/workflows/ci.bazelrc
4443
--bazelrc=.bazelrc
45-
build //java/com/google/testing/coverage:zip
46-
&&
47-
cp bazel-bin/java/com/google/testing/coverage/jacococoverage.zip .
44+
build
45+
//java/com/google/testing/coverage:zip
46+
47+
- name: Prepare release assets
48+
env:
49+
# Bazelisk will download bazel to here
50+
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
51+
run: >-
52+
cp bazel-bin/java/com/google/testing/coverage/jacocorunner.zip .
4853
&&
49-
unzip jacococoverage.zip
54+
unzip jacocorunner.zip
5055
&&
51-
mv jacococoverage.jar ./jacococoverage.${{ env.RELEASE_VERSION }}.jar
56+
mv jacocorunner.jar ./jacocorunner.${{ env.RELEASE_VERSION }}.jar
5257
&&
53-
mv jacococoverage.zip ./jacococoverage.${{ env.RELEASE_VERSION }}.zip
58+
mv jacocorunner.zip ./jacocorunner.${{ env.RELEASE_VERSION }}.zip
59+
5460
- name: Release
5561
env:
5662
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
5763
uses: softprops/action-gh-release@v1
5864
with:
5965
files: |
60-
./jacococoverage.${{ env.RELEASE_VERSION }}.jar
61-
./jacococoverage.${{ env.RELEASE_VERSION }}.zip
66+
./jacocorunner.${{ env.RELEASE_VERSION }}.jar
67+
./jacocorunner.${{ env.RELEASE_VERSION }}.zip

0 commit comments

Comments
 (0)