Skip to content

Commit cb2ec75

Browse files
feat: Improve release workflow and update README
This commit introduces two main improvements in a single, clean commit: 1. **Release Workflow:** The GitHub Actions workflow for creating releases has been updated to be more robust and user-friendly. - It now automatically generates a changelog based on the commit history since the last tag. - The release description is now managed via a standard, multi-line bash string, which is easy to edit and avoids YAML parsing issues. 2. **README Banners:** The shield.io banner icons in `README.md` are now linkable, pointing to their respective pages on GitHub (e.g., Releases, Issues).
1 parent 25a8dce commit cb2ec75

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/create.release.for.tag.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,25 @@ jobs:
4141
PREVIOUS_TAG: ${{ env.previous_tag }}
4242
GITHUB_REPOSITORY: ${{ github.repository }}
4343
run: |
44-
RELEASE_BODY=$(cat <<EOF
45-
**Ollama Bash Lib $CURRENT_TAG**
44+
RELEASE_BODY="**Ollama Bash Lib $CURRENT_TAG**
4645
47-
A Bash Library for Ollama
46+
A Bash Library for Ollama
4847
49-
Run LLM prompts straight from your shell, and more
48+
Run LLM prompts straight from your shell, and more
5049
51-
Repo: https://github.com/$GITHUB_REPOSITORY
52-
EOF
53-
)
50+
Repo: https://github.com/$GITHUB_REPOSITORY"
5451
5552
# Generate changelog
5653
CHANGELOG=$(git log --pretty=format:"* %s (%h)" $PREVIOUS_TAG..$CURRENT_TAG)
5754
5855
if [ -n "$CHANGELOG" ]; then
59-
RELEASE_BODY="${RELEASE_BODY}**Full Changelog**:\n\n${CHANGELOG}\n\n"
56+
RELEASE_BODY="${RELEASE_BODY}
57+
58+
**Full Changelog**:
59+
60+
${CHANGELOG}
61+
62+
"
6063
fi
6164
6265
# Add link to compare with previous version

0 commit comments

Comments
 (0)