diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad1e387a..3edf9d49 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,6 +12,10 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Get tag + id: get_tag + run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//} + - name: Archive katas shell: bash run: git archive --output=git-katas.zip HEAD @@ -34,5 +38,5 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./git-katas.zip - asset_name: git-katas-${{ github.ref }}.zip + asset_name: git-katas-${{ steps.get_tag.outputs.TAG }}.zip asset_content_type: application/zip