From 350a0902956f9925116ed171599a341910ebced1 Mon Sep 17 00:00:00 2001 From: Bryan Swift Date: Wed, 19 Feb 2020 22:00:09 -0500 Subject: [PATCH] Do not include version in artifact name The `create-release` action strips out the `refs/tags/` from the beginning of `github.ref` and does not provide the tag name as an output (yet see https://github.com/actions/create-release/pull/10). --- .github/workflows/create-artifact.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create-artifact.yml b/.github/workflows/create-artifact.yml index 30a3866..229a397 100644 --- a/.github/workflows/create-artifact.yml +++ b/.github/workflows/create-artifact.yml @@ -16,15 +16,15 @@ jobs: node-version: ${{ env.NODE_VERSION }} - run: npm install - run: make archive - - run: cp XSignature.zip Paw-TicketEvolutionXSignature-${{ env.GITHUB_REF }}.zip + - run: cp XSignature.zip Paw-TicketEvolutionXSignature.zip - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ env.GITHUB_REF }} - release_name: ${{ env.GITHUB_REF }} + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} draft: false prerelease: false - name: Upload Release Asset @@ -34,6 +34,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./Paw-TicketEvolutionXSignature-${{ env.GITHUB_REF }}.zip - asset_name: Paw-TicketEvolutionXSignature-${{ env.GITHUB_REF }}.zip + asset_path: ./Paw-TicketEvolutionXSignature.zip + asset_name: Paw-TicketEvolutionXSignature.zip asset_content_type: application/zip