Skip to content

Commit

Permalink
Strip refs/tags/ from release tarball name
Browse files Browse the repository at this point in the history
Github does not expose the raw tag id, only the full ref. This is
actually how Github recommends doing this:
https://github.community/t/how-to-get-just-the-tag-name/16241/7
  • Loading branch information
Rycieos committed Jan 26, 2021
1 parent 9c0eb43 commit cfb7c5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -38,12 +38,15 @@ jobs:
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Get the tag name
id: tag_name
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./.output/liquidprompt.tar.gz
asset_name: liquidprompt-${{ github.ref }}.tar.gz
asset_name: liquidprompt-${{ steps.tag_name.outputs.tag }}.tar.gz
asset_content_type: application/gzip

0 comments on commit cfb7c5e

Please sign in to comment.