Skip to content

Commit ce47b07

Browse files
committed
automatically upload to the correct release dir
1 parent 7d96897 commit ce47b07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ jobs:
7272
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
7373
SECURITY_KEY_ID: ${{ secrets.SECURITY_KEY_ID }}
7474
run: |
75-
bash ci/scripts/upload-release.sh dist/ obs://rust-mirror/installer/latest
75+
version=`echo "${{ github.event.inputs.tag }}" | sed -E 's/^v?//; s/-.*//'`
76+
[[ -z $version ]] && exit 1
77+
bash ci/scripts/upload-release.sh dist/ obs://rust-mirror/installer/$version
7678
7779
- name: github release
7880
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)