-
Notifications
You must be signed in to change notification settings - Fork 18
/
action.yml
70 lines (70 loc) · 2.79 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: "Publish python poetry package"
author: "@JRubics"
description: "An action to build and publish python package to https://pypi.org/ using poetry https://github.com/sdispater/poetry"
branding:
icon: "upload-cloud"
color: "gray-dark"
inputs:
python_version:
description: "The version of python to install"
required: false
default: "latest"
poetry_version:
description: "The version of poetry to install"
required: false
default: "latest"
pypi_token:
description: "API token to authenticate when uploading package to PyPI (https://pypi.org/manage/account/) or TestPyPI (https://test.pypi.org/manage/account/)"
required: false
repository_name:
description: "Name of a repository where the package will be uploaded"
required: false
repository_url:
description: "URL where the package will be uploaded"
required: false
repository_username:
description: "Username to log in into a repository where the package will be uploaded if using http-basic authentification instead of api token"
required: false
repository_password:
description: "Password to log in into a repository where the package will be uploaded if using http-basic authentification instead of api token"
required: false
build_format:
description: 'The build format to be used, either "sdist" or "wheel"'
required: false
poetry_install_options:
description: 'Adds possibility to pass options to "poetry install" command'
required: false
allow_poetry_pre_release:
description: "Allow usage of poetry pre-release and development versions"
required: false
extra_build_dependency_packages:
description: "An optional space-separated list of debian packages to be installed before building the package"
required: false
plugins:
description: "An optional space-separated list of poetry plugins to be installed before building the package"
required: false
package_directory:
description: "An optional subdirectory path if poetry package doesn't reside in the main workflow directory"
required: false
default: "."
poetry_publish_options:
description: 'Adds possibility to pass options to "poetry publish" command'
required: false
runs:
using: "docker"
image: "docker://jrubics/poetry-publish:v2.0"
args:
- ${{ inputs.python_version }}
- ${{ inputs.poetry_version }}
- ${{ inputs.pypi_token }}
- ${{ inputs.repository_name}}
- ${{ inputs.repository_url }}
- ${{ inputs.build_format }}
- ${{ inputs.poetry_install_options }}
- ${{ inputs.allow_poetry_pre_release }}
- ${{ inputs.repository_username }}
- ${{ inputs.repository_password }}
- ${{ inputs.extra_build_dependency_packages }}
- ${{ inputs.plugins }}
- ${{ inputs.package_directory }}
- ${{ inputs.poetry_publish_options }}