From fbf6d49041a6279a4f16cba0b4ac358b4a25974c Mon Sep 17 00:00:00 2001 From: Sain Saji <95070425+sainsaji@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:52:17 +0530 Subject: [PATCH] release zip --- .github/workflows/c-cpp.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 3b8fd5a..e6f1da6 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -22,7 +22,17 @@ jobs: id: tag run: | echo "::set-output name=release_tag::UserBuild_$(date +"%Y.%m.%d_%H-%M")" -= + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: $GITHUB_WORKSPACE/*.zip + asset_name: Release.zip + asset_content_type: application/zip +