Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
  • Loading branch information
JRubics committed Feb 4, 2024
1 parent 330c18c commit 79f6416
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,31 @@ The following will build and publish the python package to the PyPI using the la

```yaml
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
uses: JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
```
Python and poetry versions can be specified in inputs as well as the build_format, allow_poetry_pre_release, poetry_install_options and poetry_publish_options.
Python and poetry versions can be specified in inputs as well as the build_format and allow_poetry_pre_release.
```yaml
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
uses: JRubics/poetry-publish@v2.0
with:
python_version: "3.7.1"
poetry_version: "==1.0.5" # (PIP version specifier syntax)
pypi_token: ${{ secrets.PYPI_TOKEN }}
build_format: "sdist"
allow_poetry_pre_release: "yes"
```
Poetry options for install and publish commands can be specified through poetry_install_options and poetry_publish_options.
```yaml
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
poetry_install_options: "--sync --no-root"
poetry_publish_options: "--dry-run"
```
Expand All @@ -104,7 +113,7 @@ Repository can be changed to TestPyPI or a private wheels repo by specifying rep
```yaml
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
uses: JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
repository_name: "testpypi"
Expand All @@ -115,7 +124,7 @@ Repository authentication can be changed to http-basic authentification by speci
```yaml
- name: Build and publish to private Python package repository
uses: JRubics/poetry-publish@v1.17
uses: JRubics/poetry-publish@v2.0
with:
repository_name: "foo"
repository_url: "https://foo.bar/simple/"
Expand All @@ -127,7 +136,7 @@ Extra debian packages can be installed before building the python package. This
```yaml
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
uses: JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
extra_build_dependency_packages: "capnproto libzmq3-dev"
Expand All @@ -137,7 +146,7 @@ Poetry plugins can be added by specifying plugins input
```yaml
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
uses: JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
plugins: "poetry-dynamic-versioning[plugin]"
Expand All @@ -147,7 +156,7 @@ Poetry package can be built from a subdirectory. It should be specified as packa
```yaml
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
uses: JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
package_directory: "subdirectory"
Expand All @@ -169,7 +178,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
uses: JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ inputs:
required: false
runs:
using: "docker"
image: "docker://jrubics/poetry-publish:v2.0-rc.1"
image: "docker://jrubics/poetry-publish:v2.0"
args:
- ${{ inputs.python_version }}
- ${{ inputs.poetry_version }}
Expand Down

0 comments on commit 79f6416

Please sign in to comment.