mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-25 10:01:02 -05:00
commit
ccc58ba516
2 changed files with 6 additions and 6 deletions
10
README.md
10
README.md
|
@ -6,7 +6,7 @@ PyPI.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To use the action add the following step to your workflow file (e.g.:
|
To use the action add the following step to your workflow file (e.g.
|
||||||
`.github/workflows/main.yml`)
|
`.github/workflows/main.yml`)
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,18 +56,18 @@ by putting them into the `dist/` folder prior to running this Action.
|
||||||
|
|
||||||
For best results, figure out what kind of workflow fits your
|
For best results, figure out what kind of workflow fits your
|
||||||
project's specific needs.
|
project's specific needs.
|
||||||
|
|
||||||
For example, you could implement a parallel workflow that
|
For example, you could implement a parallel workflow that
|
||||||
pushes every commit to Test PyPI or your own index server,
|
pushes every commit to Test PyPI or your own index server,
|
||||||
like `devpi`. For this, you'd need to (1) specify a custom
|
like `devpi`. For this, you'd need to (1) specify a custom
|
||||||
`repository_url` value and (2) generate a unique version
|
`repository_url` value and (2) generate a unique version
|
||||||
number for each upload so that they'd not create a conflict.
|
number for each upload so that they'd not create a conflict.
|
||||||
The later is possible if you use `setuptools_scm` package but
|
The latter is possible if you use `setuptools_scm` package but
|
||||||
you could also invent your own solution based on the distance
|
you could also invent your own solution based on the distance
|
||||||
to the latest tagged commit.
|
to the latest tagged commit.
|
||||||
|
|
||||||
Please notice that you'll need to create another token for a
|
You'll need to create another token for a separate host and then
|
||||||
separate host and then [save it as a GitHub repo
|
[save it as a GitHub repo secret][Creating & using secrets].
|
||||||
secret][Creating & using secrets].
|
|
||||||
|
|
||||||
The action invocation in this case would look like:
|
The action invocation in this case would look like:
|
||||||
```yml
|
```yml
|
||||||
|
|
|
@ -23,7 +23,7 @@ if [[
|
||||||
then
|
then
|
||||||
>&2 echo \
|
>&2 echo \
|
||||||
[WARNING]: \
|
[WARNING]: \
|
||||||
It looks like there is no Python distribution packages to \
|
It looks like there are no Python distribution packages to \
|
||||||
publish in the '"dist/"' directory. Please verify that they \
|
publish in the '"dist/"' directory. Please verify that they \
|
||||||
are in place should you face this problem.
|
are in place should you face this problem.
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue