File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -82,18 +82,11 @@ jobs:
82
82
repository-cache : true
83
83
- name : Build All
84
84
run : bazel build //...
85
- - name : Rename artifact with tag for release
86
- if : startsWith(github.ref, 'refs/tags/')
87
- run : |
88
- TAG_NAME=${GITHUB_REF#refs/tags/}
89
- cp bazel-bin/sparrow-cli.tar.gz sparrow-cli-${TAG_NAME}-mac.tar.gz
90
- echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
91
- - name : Rename artifact with commit hash for push
92
- if : ${{ !startsWith(github.ref, 'refs/tags/') }}
93
- run : |
94
- SHORT_COMMIT=$(echo ${{ github.sha }} | cut -c1-7)
95
- cp bazel-bin/sparrow-cli.tar.gz sparrow-cli-${SHORT_COMMIT}-mac.tar.gz
96
- echo "ARTIFACT_NAME=sparrow-cli-${SHORT_COMMIT}-mac" >> $GITHUB_ENV
85
+ - name : Copy and rename artifact
86
+ uses : ./.github/actions/copy-artifact
87
+ with :
88
+ source : bazel-bin/sparrow-cli.tar.gz
89
+ platform : mac
97
90
- name : Upload sparrow-cli.tar.gz artifact
98
91
if : ${{ !startsWith(github.ref, 'refs/tags/') }}
99
92
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments