From c8be86b208aa42e0da6ab4d5bb75dddcec36cb7e Mon Sep 17 00:00:00 2001 From: Jinu Date: Sun, 13 Sep 2020 05:37:58 +0900 Subject: [PATCH] Fix asset name --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c5ac9a..e842987 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,8 +33,10 @@ jobs: CR_PAT: ${{ secrets.CR_PAT }} - name: create release asset + id: create_release_asset run: | make release-asset + echo "::set-output name=asset_name::${GITHUB_REPOSITORY##*/}.tar.gz" - name: create release id: create_release @@ -53,6 +55,6 @@ jobs: 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_REPOSITORY##*/}.tar.gz - asset_name: ${GITHUB_REPOSITORY##*/}.tar.gz + asset_path: ${{ steps.create_release_asset.outputs.asset_name }} + asset_name: ${{ steps.create_release_asset.outputs.asset_name }} asset_content_type: application/x-tar \ No newline at end of file