52
52
- name : Install Poetry & dynamic versioning plugin
53
53
run : |
54
54
pip install "poetry>=1.8.0" "poetry-dynamic-versioning[plugin]>=1.0.0"
55
- - name : Check version change
56
- uses : raven-wing/did-python-package-version-change@v1
57
- id : did-version-change
58
55
- name : Download built package
59
- if : steps.did-version-change.outputs.is_version_greater == 'true'
60
56
uses : actions/download-artifact@v4
61
57
with :
62
58
name : Packages
@@ -75,10 +71,10 @@ jobs:
75
71
echo "exists=false" >> $GITHUB_OUTPUT
76
72
fi
77
73
- name : Publish to PyPI
78
- if : steps.did-version-change.outputs.is_version_greater == 'true' && steps. version_check.outputs.exists == 'false'
74
+ if : steps.version_check.outputs.exists == 'false'
79
75
uses : pypa/gh-action-pypi-publish@release/v1
80
76
- name : Retry build by creating empty commit
81
- if : steps.did-version-change.outputs.is_version_greater == 'true' && steps. version_check.outputs.exists == 'true'
77
+ if : steps.version_check.outputs.exists == 'true'
82
78
run : |
83
79
git config --global user.email "[email protected] "
84
80
git config --global user.name "CI Bot"
@@ -109,11 +105,7 @@ jobs:
109
105
- name : Install Poetry & dynamic versioning plugin
110
106
run : |
111
107
pip install "poetry>=1.8.0" "poetry-dynamic-versioning[plugin]>=1.0.0"
112
- - name : Check version change
113
- uses : raven-wing/did-python-package-version-change@v1
114
- id : did-version-change
115
108
- name : Download built package
116
- if : steps.did-version-change.outputs.is_version_greater == 'true'
117
109
uses : actions/download-artifact@v4
118
110
with :
119
111
name : Packages
@@ -132,12 +124,12 @@ jobs:
132
124
echo "exists=false" >> $GITHUB_OUTPUT
133
125
fi
134
126
- name : Publish to Test PyPI
135
- if : steps.did-version-change.outputs.is_version_greater == 'true' && steps. version_check.outputs.exists == 'false'
127
+ if : steps.version_check.outputs.exists == 'false'
136
128
uses : pypa/gh-action-pypi-publish@release/v1
137
129
with :
138
130
repository-url : https://test.pypi.org/legacy/
139
131
- name : Retry build by creating empty commit
140
- if : steps.did-version-change.outputs.is_version_greater == 'true' && steps. version_check.outputs.exists == 'true'
132
+ if : steps.version_check.outputs.exists == 'true'
141
133
run : |
142
134
git config --global user.email "[email protected] "
143
135
git config --global user.name "CI Bot"
0 commit comments