pyinstaller-action-windows/action.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2020-06-02 21:32:30 +08:00
# action.yaml
name: 'PyInstaller Windows'
description: 'Customisable GitHub Action to package your python code with PyInstaller for Windows'
branding:
icon: 'box'
color: 'blue'
inputs:
path:
2020-06-25 00:57:19 +08:00
description: 'Directory containing source code (optional requirements.txt).'
2020-06-02 21:32:30 +08:00
required: True
2020-06-02 22:22:44 +08:00
default: src
2024-01-25 21:16:59 +08:00
2020-06-03 07:58:23 +08:00
pypi_url:
description: 'Specify a custom URL for PYPI'
required: False
default: https://pypi.python.org/
2024-01-25 21:16:59 +08:00
2020-06-03 07:58:23 +08:00
pypi_index_url:
description: 'Specify a custom URL for PYPI Index'
required: False
default: https://pypi.python.org/simple
2024-01-25 21:16:59 +08:00
2020-06-25 00:57:19 +08:00
spec:
description: 'Specify a file path for .spec file'
required: False
2020-06-25 20:12:28 +08:00
default: ""
2024-01-25 21:16:59 +08:00
2021-04-14 21:50:28 +08:00
requirements:
description: 'Specify a file path for requirements.txt file'
required: False
default: "requirements.txt"
2024-01-25 21:16:59 +08:00
add_data_dirs:
description: 'Specify a list of directories to add to the `--add-data` flag, the dirs must be separated by a blank space'
required: False
default: ""
2020-06-02 21:32:30 +08:00
outputs:
output:
description: 'The output of PyInstaller'
runs:
using: 'docker'
image: 'Dockerfile'
args:
2020-06-03 08:04:29 +08:00
- ${{ inputs.path }}
- ${{ inputs.pypi_url }}
2020-06-25 00:57:19 +08:00
- ${{ inputs.pypi_index_url }}
- ${{ inputs.spec }}
2021-04-14 21:55:35 +08:00
- ${{ inputs.requirements }}
2024-01-25 21:16:59 +08:00
- ${{ inputs.add_data_dirs }}