fix(release): correct build fetch depth and upgrade pypi publish workflow#10
Merged
Conversation
Contributor
CI Development Pipeline Status✅ Pipeline: Completed successfully. View Run Details |
There was a problem hiding this comment.
Pull request overview
This PR updates the CI/CD reusable workflows to ensure package versioning can be derived from full Git history during builds, and modernizes the PyPI publish action used in releases.
Changes:
- Configure
actions/checkoutin the reusable build workflow to fetch full history (fetch-depth: 0) so git-derived versioning works reliably. - Upgrade the pinned commit for
pypa/gh-action-pypi-publishused by the reusable publish workflow.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/_build_package.yml | Fetch full Git history during package builds to support git-based version calculation. |
| .github/workflows/_publish.yml | Update the pinned PyPI publish action revision to the newer v1.14 line. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
fetch-depth: 0to theactions/checkoutstep within.github/workflows/_build_package.yml. This ensures the full git history is fetched during the build process, which is necessary forgitversionedto accurately compute the package version based on git tags and commit history rather than a shallow clone.pypa/gh-action-pypi-publishaction in.github/workflows/_publish.ymlfromv1.8.14tov1.14to utilize the latest features and bug fixes for PyPI publishing.Type of Change
README.md,SUPPORT.md, docstrings, etc.)Test Plan
Related Issues
Screenshots / Visuals (if applicable)
N/A
Use of AI
## WRITTEN BY AI ##)Checklist
Important
Please review and complete this checklist before submitting your PR. This helps our maintainers process your contribution faster and ensures it meets the quality standards of
gitversioned.gitversioned.