From cfffe12108049a769af74590d89219878a178268 Mon Sep 17 00:00:00 2001 From: Niranjan Krishna Date: Wed, 18 Oct 2023 13:27:25 +0530 Subject: [PATCH] edit workflow --- .github/workflows/build_zmq.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_zmq.yml b/.github/workflows/build_zmq.yml index 50abf55..d7e9633 100644 --- a/.github/workflows/build_zmq.yml +++ b/.github/workflows/build_zmq.yml @@ -16,12 +16,17 @@ jobs: - name: Run build script run: ./zmq_adapter/build.sh + # Calculate the release tag using the date command + - name: Set release tag + id: vars + run: echo "::set-output name=release_tag::release-$(date +'%Y%m%d%H%M%S')" + - name: Create Release id: create_release uses: actions/create-release@v1 with: - tag_name: release-$(date +'%Y%m%d%H%M%S') - release_name: Release $(date +'%Y%m%d%H%M%S') + tag_name: ${{ steps.vars.outputs.release_tag }} + release_name: Release ${{ steps.vars.outputs.release_tag }} draft: false prerelease: false env: @@ -31,7 +36,7 @@ jobs: uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} # from the output of create_release step - asset_path: ./zmq_adapter.zip + asset_path: ./zmq_adapter/zmq_adapter.zip # adjust the path based on where your build.sh script outputs the .zip file asset_name: zmq_adapter.zip asset_content_type: application/zip env: