Skip to content

Commit 7bea3c2

Browse files
Publish a GitHub Release after tagging (#782)
Co-authored-by: Abhinav Singh <[email protected]>
1 parent 39f5996 commit 7bea3c2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test-library.yml

+34
Original file line numberDiff line numberDiff line change
@@ -764,4 +764,38 @@ jobs:
764764
to the just published release back to GitHub
765765
run: >-
766766
git push --atomic origin '${{ needs.pre-setup.outputs.git-tag }}'
767+
768+
publish-github-release:
769+
name: >-
770+
Publish a GitHub Release for
771+
${{ needs.pre-setup.outputs.git-tag }}
772+
needs:
773+
- post-release-repo-update
774+
- pre-setup # transitive, for accessing settings
775+
runs-on: Ubuntu-latest
776+
777+
permissions:
778+
contents: write
779+
780+
steps:
781+
- name: Download all the dists
782+
uses: actions/download-artifact@v2
783+
with:
784+
name: python-package-distributions
785+
path: dist/
786+
787+
- name: >-
788+
Publish a GitHub Release for
789+
${{ needs.pre-setup.outputs.git-tag }}
790+
uses: softprops/action-gh-release@v1
791+
with:
792+
# body/body_path: # FIXME: Use once Towncrier is integrated.
793+
discussion_category_name: Announcements
794+
fail_on_unmatched_files: true
795+
files: |
796+
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}
797+
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}
798+
name: ${{ needs.pre-setup.outputs.git-tag }}
799+
tag_name: ${{ needs.pre-setup.outputs.git-tag }}
800+
target_commitish: ${{ github.event.inputs.release-commitish }}
767801
...

0 commit comments

Comments
 (0)