Skip to content

Commit

Permalink
Publish a GitHub Release after tagging (#782)
Browse files Browse the repository at this point in the history
Co-authored-by: Abhinav Singh <126065+abhinavsingh@users.noreply.github.com>
  • Loading branch information
webknjaz and abhinavsingh authored Nov 24, 2021
1 parent 39f5996 commit 7bea3c2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -764,4 +764,38 @@ jobs:
to the just published release back to GitHub
run: >-
git push --atomic origin '${{ needs.pre-setup.outputs.git-tag }}'
publish-github-release:
name: >-
Publish a GitHub Release for
${{ needs.pre-setup.outputs.git-tag }}
needs:
- post-release-repo-update
- pre-setup # transitive, for accessing settings
runs-on: Ubuntu-latest

permissions:
contents: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v2
with:
name: python-package-distributions
path: dist/

- name: >-
Publish a GitHub Release for
${{ needs.pre-setup.outputs.git-tag }}
uses: softprops/action-gh-release@v1
with:
# body/body_path: # FIXME: Use once Towncrier is integrated.
discussion_category_name: Announcements
fail_on_unmatched_files: true
files: |
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}
name: ${{ needs.pre-setup.outputs.git-tag }}
tag_name: ${{ needs.pre-setup.outputs.git-tag }}
target_commitish: ${{ github.event.inputs.release-commitish }}
...

0 comments on commit 7bea3c2

Please sign in to comment.