Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/on-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ jobs:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
before=$(git rev-parse HEAD)
uv run semantic-release version
# PSR bumps files, updates CHANGELOG.md, commits and tags, but does not
# create the GitHub release; we create it below with GitHub's generated
# "What's Changed" notes so Zenodo shows them (no changelog duplication).
uv run semantic-release version --no-vcs-release
after=$(git rev-parse HEAD)
if [ "$before" != "$after" ]; then
tag=$(git tag --points-at HEAD | grep -E '^v[0-9]' | head -1)
Expand All @@ -72,6 +75,19 @@ jobs:
if: steps.version.outputs.released == 'true'
run: uv publish --trusted-publishing always

- name: Create GitHub release with generated notes
if: steps.version.outputs.released == 'true'
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
VERSION: ${{ steps.version.outputs.version }}
run: |
gh release create "v$VERSION" --verify-tag --title "v$VERSION" --generate-notes
# Append a link to the full grouped changelog (kept in CHANGELOG.md),
# so the release has "What's Changed" plus a pointer, no duplication.
notes=$(gh release view "v$VERSION" --json body -q .body)
link="Full grouped changelog: [CHANGELOG.md](https://github.com/${GITHUB_REPOSITORY}/blob/v${VERSION}/CHANGELOG.md)"
gh release edit "v$VERSION" --notes "${notes}"$'\n\n---\n'"${link}"

deploy-docs:
needs: release
if: needs.release.outputs.released == 'true'
Expand Down
1 change: 0 additions & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ version: 0.16.3
abstract: "A Python package for abstract and object-oriented access to knowledge graphs, bridging semantic web technologies (RDF, JSON-LD, SPARQL) with Pydantic type safety."
repository-code: "https://github.com/OO-LD/oold-python"
url: "https://OO-LD.github.io/oold-python/"
license: MIT
doi: 10.5281/zenodo.8374237
# Authors listed here are the creators shown on each Zenodo release.
# Listing is opt-in: to be added, open a PR (see CONTRIBUTING.md, "Citation and authorship").
Expand Down
Loading