Skip to content

Commit 8702378

Browse files
fix
Signed-off-by: Dusan Malusev <[email protected]>
1 parent 4b9769a commit 8702378

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,24 @@ jobs:
6060
uses: actions/checkout@v4
6161
- uses: actions-rust-lang/setup-rust-toolchain@v1
6262

63-
- name: Build CQLStressScyllaBench Binary
63+
- name: Build
6464
uses: actions-rs/cargo@v1
6565
with:
6666
command: build
6767
args: --profile dist --all
6868

69-
- name: Set Binary Name
69+
- name: Get Release Upload URL
70+
shell: bash
7071
run: |
72+
UPLOAD_URL=$(gh release view v${{ needs.get_tag.outputs.tag }} --json uploadUrl -q '.uploadUrl' | sed 's/{.*//')
7173
BIN_NAME_CS="cql-stress-cassandra-stress-${{ needs.get_tag.outputs.tag }}-${{ matrix.os }}"
7274
BIN_NAME_SB="cql-stress-scylla-bench-${{ needs.get_tag.outputs.tag }}-${{ matrix.os }}"
7375
echo "BIN_NAME_CS=$BIN_NAME_CS" >> $GITHUB_ENV
7476
echo "BIN_NAME_CS=$BIN_NAME_CS"
7577
echo "BIN_NAME_SB=$BIN_NAME_SB" >> $GITHUB_ENV
7678
echo "BIN_NAME_SB=$BIN_NAME_SB"
77-
shell: bash
78-
79-
- name: Get Release Upload URL
80-
run: |
81-
UPLOAD_URL=$(gh release view v${{ needs.get_tag.outputs.tag }} --json uploadUrl -q '.uploadUrl' | sed 's/{.*//')
82-
83-
echo "UPLOAD_URL=$UPLOAD_URL"
84-
echo "UPLOAD_URL=$UPLOAD_URL" >> $GITHUB_ENV
79+
echo "UPLOAD_URL_CS=$UPLOAD_URL?name=$BIN_NAME_CS" >> $GITHUB_ENV
80+
echo "UPLOAD_URL_SB=$UPLOAD_URL?name=$BIN_NAME_SB" >> $GITHUB_ENV
8581
env:
8682
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8783

@@ -91,7 +87,7 @@ jobs:
9187
env:
9288
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9389
with:
94-
upload_url: ${{ env.UPLOAD_URL }}
90+
upload_url: ${{ env.UPLOAD_URL_CS }}
9591
asset_path: ./target/dist/cql-stress-cassandra-stress
9692
asset_name: ${{ env.BIN_NAME_CS }}
9793
asset_content_type: application/octet-stream
@@ -101,7 +97,7 @@ jobs:
10197
env:
10298
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10399
with:
104-
upload_url: ${{ env.UPLOAD_URL }}
100+
upload_url: ${{ env.UPLOAD_URL_SB }}
105101
asset_path: ./target/dist/cql-stress-scylla-bench
106102
asset_name: ${{ env.BIN_NAME_SB }}
107103
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)