Skip to content

Commit b6af2e9

Browse files
committed
enable automatic publication of releases on github
1 parent 34ee55b commit b6af2e9

File tree

4 files changed

+500
-482
lines changed

4 files changed

+500
-482
lines changed

.github/workflows/build-test-package-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ jobs:
277277
name: wheel-package
278278
path: dist
279279

280-
- name: get release notes
281-
id: get_release_notes
280+
- name: get release informations
281+
id: get_release_informations
282282
run: |
283283
REL_NOTES="$(poetry run npm run --silent extract-release-notes)"
284284
echo "$REL_NOTES"
@@ -290,6 +290,7 @@ jobs:
290290
echo "$REL_NOTES"
291291
292292
echo "::set-output name=release_notes::$REL_NOTES"
293+
echo "::set-output name=is_prelease::$((poetry run npm run --silent is-prerelease)"
293294
294295
- name: find assets
295296
id: find_assets
@@ -311,9 +312,9 @@ jobs:
311312
with:
312313
tag_name: ${{ github.ref }}
313314
release_name: ${{ github.ref }}
314-
body: ${{ steps.get_release_notes.outputs.release_notes }}
315-
draft: true
316-
prerelease: true
315+
body: ${{ steps.get_release_informations.outputs.release_notes }}
316+
draft: false
317+
prerelease: ${{ steps.get_release_informations.outputs.is_prelease }}
317318

318319
- name: upload vsix asset to github release
319320
id: upload-vsix-asset

0 commit comments

Comments
 (0)