Skip to content

Commit 0ec0e87

Browse files
Document publishing job boundary
1 parent ecf32d9 commit 0ec0e87

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ So add this to the steps list:
131131
:start-at: Install pypa/build
132132
:end-before: publish-to-pypi
133133

134+
.. important::
135+
136+
Keep building distributions and publishing them in separate jobs. The
137+
publishing jobs in this guide intentionally do not check out your project or
138+
run build commands. Instead, they only download the distribution files
139+
produced by the build job and upload them to the package index. Combining
140+
the build and publish steps in the same job is unsupported because it gives
141+
the publishing job access to project code and its build-time dependencies
142+
while it also has permission to mint publishing credentials.
143+
134144
Defining a workflow job environment
135145
===================================
136146

0 commit comments

Comments
 (0)