Skip to content

Commit 9b42739

Browse files
committed
Use minor version for tarball name
1 parent 381f111 commit 9b42739

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/build.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ jobs:
5151
5252
- name: "Tar up the binaries"
5353
run: |
54-
tar -C ./mysql_${{ matrix.dbversion }}/built_${{ matrix.dbversion }}_${{ matrix.arch }}/bin/ -czf ./mysql-${{ matrix.dbversion }}-${{ matrix.arch }}.tar.gz .
54+
MYSQL_VERSION="${{ matrix.dbversion }}"
55+
# Remove the patch version from the tarball name
56+
MINOR_MYSQL_VERSION=${MYSQL_VERSION%.*}
57+
tar -C ./mysql_${{ matrix.dbversion }}/built_${{ matrix.dbversion }}_${{ matrix.arch }}/bin/ -czf ./mysql-${MINOR_MYSQL_VERSION}-${{ matrix.arch }}.tar.gz .
5558
5659
- name: "upload mysql-${{ matrix.dbversion }}-${{ matrix.arch }}"
5760
uses: actions/upload-artifact@v4
@@ -89,11 +92,3 @@ jobs:
8992
- name: Setup tmate session
9093
if: ${{ failure() }}
9194
uses: mxschmitt/action-tmate@v3
92-
93-
# - name: Upload Release Assets
94-
# env:
95-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96-
# run: |
97-
# for file in $(find ./artifacts -type f); do
98-
# gh release upload "${{ github.ref }}" "$file" --clobber
99-
# done

0 commit comments

Comments
 (0)