From 775238891a8dfb0799883d77b57d54b055523ba8 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 30 Sep 2020 11:58:27 +0300 Subject: [PATCH] mdbx-ci: refine release-assets action to include version to tarball name. Change-Id: I085ac5e52e24a34b056a84771b6c42f2ffe46dbc --- .github/workflows/release-assets.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-assets.yml b/.github/workflows/release-assets.yml index 8650eae9..89e2883b 100644 --- a/.github/workflows/release-assets.yml +++ b/.github/workflows/release-assets.yml @@ -24,6 +24,8 @@ jobs: run: | echo "::set-output name=tarball::$(ls *.tar.gz)" echo "::set-output name=zip::$(ls *.zip)" + echo "::set-output name=suffix_unix::$(sed 's|^\([0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\)\.\(.*\)$|\1|' dist/VERSION)" + echo "::set-output name=suffix_dos::$(sed 's|^\([0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\)\.\(.*\)$|\1|' dist/VERSION | tr . _)" - name: Create Release id: create_release uses: actions/create-release@v1 @@ -41,7 +43,7 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ${{ steps.name.outputs.tarball }} - asset_name: amalgamated.tar.gz + asset_name: libmdbx-amalgamated-${{ steps.name.outputs.suffix_unix }}.tar.gz # asset_label: Amalgamated source tarball asset_content_type: application/tar+gzip - name: Upload zip @@ -51,6 +53,6 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ${{ steps.name.outputs.zip }} - asset_name: amalgamated.zip + asset_name: libmdbx-amalgamated-${{ steps.name.outputs.suffix_dos }}.zip # asset_label: Amalgamated source zip-archive asset_content_type: application/zip