diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 95412142..1df57ba7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -138,13 +138,14 @@ jobs: run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - git tag v${{ needs.check_version.outputs.version }} - git push origin v${{ needs.check_version.outputs.version }} + TAG="v${{ needs.check_version.outputs.version }}" + git tag "$TAG" + git push origin "$TAG" NOTES="${{ steps.notes.outputs.notes }}" if [ -n "$(echo "$NOTES" | tr -d '[:space:]')" ]; then - gh release create v${{ needs.check_version.outputs.version }} --notes "$NOTES" + gh release create "$TAG" --title "$TAG" --notes "$NOTES" else - gh release create v${{ needs.check_version.outputs.version }} --generate-notes + gh release create "$TAG" --title "$TAG" --generate-notes fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}