1 parent 74dc5eb commit 045186fCopy full SHA for 045186f
1 file changed
.github/workflows/release.yml
@@ -64,3 +64,18 @@ jobs:
64
env:
65
PYPI_REGISTRY_TOKEN: ${{ secrets.PYPI_REGISTRY_TOKEN }}
66
run: poetry publish --build --username __token__ --password "$PYPI_REGISTRY_TOKEN"
67
+
68
+ # Publishing the package and announcing it are separate concerns: this job is
69
+ # kept apart from `publish` so the credential-bearing job keeps `contents: read`.
70
+ release:
71
+ needs: publish
72
+ runs-on: ubuntu-latest
73
+ permissions:
74
+ contents: write
75
+ steps:
76
+ - name: GitHub Release
77
+ uses: softprops/action-gh-release@v2
78
+ with:
79
+ generate_release_notes: true
80
+ # A SemVer pre-release suffix is the only place a hyphen appears in the tag.
81
+ prerelease: ${{ contains(github.ref_name, '-') }}
0 commit comments