diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 9b6bf9d0..f7c80edb 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -81,7 +81,7 @@ jobs: with: repo_token: "${{ secrets.GITHUB_TOKEN }}" automatic_release_tag: "latest" - prerelease: ${{ contains(github.ref, '-pre') }} - title: "${GITHUB_REF/refs/tags}" + prerelease: ${{ contains(needs.build.outputs.version, '-pre') }} + title: "Release v${{ needs.build.outputs.version }}" files: | dist/*.nupkg