diff --git a/.github/workflows/build-win64.yml b/.github/workflows/build-win64.yml index dc776a003..0966f762f 100644 --- a/.github/workflows/build-win64.yml +++ b/.github/workflows/build-win64.yml @@ -11,6 +11,13 @@ jobs: update: true install: git - run: git config --global core.autocrlf input + - name: Extract tag name + id: tag + uses: actions/github-script@0.2.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + return context.payload.ref.replace(/\/refs\/tags\//, ''); - uses: actions/checkout@v4 - name: Build Dino run: | @@ -24,7 +31,6 @@ jobs: with: name: dino-installer path: windows-installer/dino-installer.exe - - name: Release Dino installer if: ${{ github.ref_type == 'tag' }} uses: svenstaro/upload-release-action@2.9.0 @@ -33,5 +39,5 @@ jobs: file: windows-installer/dino-installer.exe asset_name: dino-installer.exe tag: ${{ github.ref }} - release_name: Dino $tag + release_name: Dino ${{ steps.tag.outputs.result }} overwrite: true