We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 208c35c commit bb8b4b3Copy full SHA for bb8b4b3
1 file changed
.github/workflows/publish.yml
@@ -26,12 +26,23 @@ jobs:
26
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
run: uv run semantic-release version
28
29
+ - name: Check if dist directory exists
30
+ id: check_dist
31
+ run: |
32
+ if [ -d "dist" ]; then
33
+ echo "exists=true" >> $GITHUB_OUTPUT
34
+ else
35
+ echo "exists=false" >> $GITHUB_OUTPUT
36
+ fi
37
+
38
- name: Publish to PyPI
39
+ if: steps.check_dist.outputs.exists == 'true'
40
uses: pypa/gh-action-pypi-publish@release/v1
41
with:
42
packages-dir: dist/
43
44
- name: Publish GitHub Release
45
46
env:
47
48
run: uv run semantic-release publish
0 commit comments