mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:14:12 +08:00
mdbx-ci: refine release-assets action to include version to tarball name.
Change-Id: I085ac5e52e24a34b056a84771b6c42f2ffe46dbc
This commit is contained in:
parent
309f9a3172
commit
775238891a
6
.github/workflows/release-assets.yml
vendored
6
.github/workflows/release-assets.yml
vendored
@ -24,6 +24,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "::set-output name=tarball::$(ls *.tar.gz)"
|
echo "::set-output name=tarball::$(ls *.tar.gz)"
|
||||||
echo "::set-output name=zip::$(ls *.zip)"
|
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
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@ -41,7 +43,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ${{ steps.name.outputs.tarball }}
|
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_label: Amalgamated source tarball
|
||||||
asset_content_type: application/tar+gzip
|
asset_content_type: application/tar+gzip
|
||||||
- name: Upload zip
|
- name: Upload zip
|
||||||
@ -51,6 +53,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ${{ steps.name.outputs.zip }}
|
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_label: Amalgamated source zip-archive
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user