Skip to content

Commit f9e6f60

Browse files
authored
Merge pull request #1518 from guenp/patch-1
Add a note on how to set up your `GITHUB_TOKEN` permissions to the publishing to PyPI from GHA guide
2 parents f6c0291 + 643b211 commit f9e6f60

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ from the current tag is created using the ``gh`` CLI. Note this step can be furt
171171
customised. See the `gh release documentation <https://cli.github.com/manual/gh_release>`_
172172
as a reference.
173173

174+
.. tip::
175+
176+
You may need to manage your ``GITHUB_TOKEN`` permissions to
177+
enable creating the GitHub Release. See the `GitHub
178+
documentation <https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-the-default-github_token-permissions>`_
179+
for instructions. Specifically, the token needs the
180+
``contents: write`` permission.
181+
174182
Finally, the signed distributions are uploaded to the GitHub Release.
175183

176184
.. literalinclude:: github-actions-ci-cd-sample/publish-to-test-pypi.yml

0 commit comments

Comments
 (0)