From a05413ca3a740c4fe41a2d6cf0badeeef030221e Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sat, 9 Nov 2024 10:38:36 +0100 Subject: [PATCH] fix release --- .github/workflows/relase.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/relase.yml b/.github/workflows/relase.yml index 97270f7..5143def 100644 --- a/.github/workflows/relase.yml +++ b/.github/workflows/relase.yml @@ -39,12 +39,18 @@ jobs: - name: List files in the workspace run: ls -la + - name: Get Name of Artifact + run: | + ARTIFACT_PATHNAME=$(ls *.tgz | head -n 1) + ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME) + echo ::set-env name=ARTIFACT_NAME::${ARTIFACT_NAME} + echo ::set-env name=ARTIFACT_PATHNAME::${ARTIFACT_PATHNAME} # 8. Upload the package as a release asset - name: Upload release asset uses: actions/upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: $(find . -name "*.tgz") - asset_name: package_${{ github.event.release.tag_name }}.tgz + asset_path: ${{ env.ARTIFACT_PATHNAME }} + asset_name: ${{ env.ARTIFACT_NAME }} asset_content_type: application/gzip