Skip to content

Commit 9fe96b6

Browse files
chryslewebknjaz
andcommitted
Apply suggestions from code review
Co-authored-by: Sviatoslav Sydorenko <[email protected]>
1 parent 6c43bf4 commit 9fe96b6

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ jobs:
66
build:
77
name: Build the source package
88
runs-on: ubuntu-latest
9-
109
steps:
1110
- uses: actions/checkout@v3
1211
- name: Set up Python
@@ -26,8 +25,8 @@ jobs:
2625
- name: Store the distribution packages
2726
uses: actions/upload-artifact@v3
2827
with:
29-
name: python-package-distributions
30-
build-n-publish-pypi:
28+
name: python-package-distributions
29+
publish-to-pypi:
3130
name: Build and publish Python 🐍 distributions 📦 to PyPI
3231
runs-on: ubuntu-latest
3332
environment:
@@ -45,7 +44,7 @@ jobs:
4544
- name: Publish distribution 📦 to PyPI
4645
if: startsWith(github.ref, 'refs/tags')
4746
uses: pypa/gh-action-pypi-publish@release/v1
48-
build-n-publish-testpypi:
47+
publish-to-testpypi:
4948
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
5049
runs-on: ubuntu-latest
5150
environment:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ popular choice is having a workflow that's triggered by a
99
This guide shows you how to publish a Python distribution
1010
whenever a tagged commit is pushed.
1111
It will use the `pypa/gh-action-pypi-publish GitHub Action`_ for
12-
publishing and `upload-artifact`_ and `download-artifact`_ actions
12+
publishing. It also uses GitHub's `upload-artifact`_ and `download-artifact`_ actions
1313
for temporarily storing and downloading the source packages.
1414

1515
.. attention::
@@ -40,11 +40,11 @@ Let's begin! 🚀
4040

4141
1. Go to https://pypi.org/manage/account/publishing/.
4242
2. Fill in the name you wish to publish your new project under,
43-
your GitHub username and repository name and
44-
the name of the release workflow file under
45-
the ``.github/`` folder, see :ref:`workflow-definition`.
43+
your GitHub username and repository name and
44+
the name of the release workflow file under
45+
the ``.github/`` folder, see :ref:`workflow-definition`.
4646
Finally add the name of the GitHub Actions environment
47-
running under your repository.
47+
set up under your repository.
4848
Register the trusted publisher.
4949
3. Now, go to https://test.pypi.org/manage/account/publishing/ and repeat
5050
the second step.

0 commit comments

Comments
 (0)