Skip to content
Merged
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
11 changes: 10 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,17 @@ jobs:
- name: Build the project
run: uv build

- name: Check for pyproject.toml changes
id: check-changes
run: |
if git diff --name-only HEAD^ HEAD | grep -q "pyproject.toml"; then
echo "changed=true" >> "$GITHUB_OUTPUT"
else
echo "changed=false" >> "$GITHUB_OUTPUT"
fi

- name: Publish to PyPI
if: contains(github.event.head_commit.modified, 'pyproject.toml')
if: steps.check-changes.outputs.changed == 'true'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down
Loading