Skip to content

Commit f37965d

Browse files
Merge pull request #1 from code-specialist/minor-adjustments
minor adjustments
2 parents a3fdc9a + 4ad27a5 commit f37965d

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
.vscode
3+
.DS_Store

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This action assumes you use [poetry](https://python-poetry.org/) as your package
77
**This action is also supported on private GitHub actions runners**. If you do not use a custom runner, you may use the builtin functionality `GITHUB_TOKEN` with write permissions as the `ACCESS_TOKEN` as seen in the first example. See [https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow)
88

99

10-
> :warning: We recommend you to use this workflow with the test pypi registry e.g. `REGISTRY: "https://test.pypi.org/simple/"` until you can confirm your workflow works as expected.
10+
> :warning: We recommend you to use this workflow with the test PyPI registry e.g. `REGISTRY: "https://test.pypi.org/simple/"` until you can confirm your workflow works as expected.
1111
1212
## Process
1313

@@ -36,7 +36,7 @@ Each example requires you to:
3636
1. Create a workflow file e.g. `.github/workflows/publish.yml`
3737
2. Create a new release and tag e.g. `1.0.0` and the action will be triggered and publishes your package
3838

39-
### publish.yaml to publish to public pypi
39+
### publish.yaml to publish to public PyPI
4040

4141
- Requires GitHub secrets:
4242
- `PYPI_PASSWORD` with a valid token
@@ -65,7 +65,7 @@ jobs:
6565
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
6666
```
6767
68-
### publish.yaml to publish to the test pypi
68+
### publish.yaml to publish to the test PyPI
6969
7070
- Requires GitHub secrets:
7171
- `PYPI_PASSWORD` with a valid token
@@ -92,10 +92,10 @@ jobs:
9292
REGISTRY: "https://test.pypi.org/legacy/"
9393
```
9494

95-
### publish.yaml to publish to a private pypi
95+
### publish.yaml to publish to a private PyPI
9696

9797
- Requires GitHub secrets:
98-
- `PYPI_USER` username for the pypi registry
98+
- `PYPI_USER` username for the PyPI registry
9999
- `PYPI_PASSWORD` with the password for the `PYPI_USER` user
100100
- `ACCESS_TOKEN` access token with write access to the GitHub repository
101101

@@ -110,7 +110,7 @@ jobs:
110110
publish-service-client-package:
111111
runs-on: ubuntu-latest
112112
steps:
113-
- name: Publish PyPi package
113+
- name: Publish PyPI package
114114
uses: code-specialist/pypi-poetry-publish@v1
115115
with:
116116
PACKAGE_DIRECTORY: "./example-package/"

action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'PyPi Poetry Publish'
1+
name: 'PyPI Poetry Publish'
22
description: 'Opinionated GitHub action to fully automate publishing packages to any PyPI registry - using Poetry and GitHub releases'
33
branding:
44
icon: 'package'
@@ -16,7 +16,7 @@ inputs:
1616
required: false
1717
default: '3.10'
1818
PYPI_PASSWORD:
19-
description: 'Password for the user to publish to PyPi. May also be a Token - requires the `PYPI_USERNAME` to be `__token__`'
19+
description: 'Password for the user to publish to PyPI. May also be a Token - requires the `PYPI_USERNAME` to be `__token__`'
2020
required: true
2121
PYPI_USERNAME:
2222
description: 'The username for the registry. Defaults to __token__'
@@ -60,7 +60,7 @@ runs:
6060
- name: Add and Commit Version
6161
run: |
6262
git add ${{ inputs.PACKAGE_DIRECTORY }}__init__.py ./pyproject.toml
63-
git config --global user.name "PyPi Poetry Publish Bot"
63+
git config --global user.name "PyPI Poetry Publish Bot"
6464
git config --global user.email "[email protected]"
6565
git commit -m "Change version to ${{ github.event.release.tag_name }}" --allow-empty
6666
git push origin HEAD:${{ inputs.BRANCH }}

0 commit comments

Comments
 (0)