Commit ede54ef
authored
ci: only publish to PyPI when semantic-release creates new version (#50)
The release workflow was failing because it attempted to publish to PyPI
even when semantic-release detected that the version already exists and
skipped creating a release.
This commit fixes the workflow to:
1. Check if dist/ directory exists after semantic-release runs
2. Only trigger PyPI publish if dist/ was created (new release)
3. Prevent publishing failures when no new version is released
This resolves the 'No such file or directory: dist/' errors in recent
release workflow runs.1 parent 6f9288e commit ede54ef
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
53 | 64 | | |
54 | 65 | | |
55 | | - | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
0 commit comments