@@ -158,6 +158,21 @@ jobs:
158
158
echo Actual release: $NEW_VERSION
159
159
exit 1
160
160
161
+ # Publish new version to GitHub
162
+ - name : Push new version to GitHub
163
+ run : |
164
+ git push origin HEAD:main
165
+ git push origin v$NEW_VERSION
166
+ working-directory : ./
167
+
168
+ - name : Create GitHub release
169
+ uses : softprops/action-gh-release@v2
170
+ with :
171
+ name : v${{ env.NEW_VERSION }}
172
+ tag_name : v${{ env.NEW_VERSION }}
173
+ target_commitish : ${{ env.RELEASE_COMMIT_ID }}
174
+ body : See the [changelog](CHANGELOG.md) for details about the changes included in this release.
175
+
161
176
# Publish new version to npm and PyPi
162
177
- name : Build Typescript library and publish to NPM
163
178
run : |
@@ -179,18 +194,3 @@ jobs:
179
194
uses : pypa/gh-action-pypi-publish@release/v1
180
195
with :
181
196
packages-dir : ./src/python/dist
182
-
183
- # Publish new version to GitHub
184
- - name : Push new version to GitHub
185
- run : |
186
- git push origin HEAD:main
187
- git push origin v$NEW_VERSION
188
- working-directory : ./
189
-
190
- - name : Create GitHub release
191
- uses : softprops/action-gh-release@v2
192
- with :
193
- name : v${{ env.NEW_VERSION }}
194
- tag_name : v${{ env.NEW_VERSION }}
195
- target_commitish : ${{ env.RELEASE_COMMIT_ID }}
196
- body : See the [changelog](CHANGELOG.md) for details about the changes included in this release.
0 commit comments