Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
| Option | Default | Required | Description |
| :---------------------- | :------ | -------- | :--------------------------------------------------------------------------------------------------------- |
| pyinstaller-binary-name | | | If populated, then a binary will be created using pyinstaller and attached to a release |
| pyinstaller-entrypoint | main.py | | The Python script that pyinstaller turns into a binary |
| token | | x | GitHub token required for Docker registry authentication and uploading release assets (if building binary) |

<!-- markdownlint-enable MD013 -->
Expand Down
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ description: |
inputs:
pyinstaller-binary-name:
description: The name of the binary that is created using pyinstaller.
pyinstaller-entrypoint:
default: main.py
description: The Python script that pyinstaller turns into a binary.
token:
description: |
A token is required to allow the mcvs-python-action to push the
Expand Down Expand Up @@ -92,13 +95,16 @@ runs:
- name: Build binary using pyinstaller
if: ${{ steps.condition_check.outcome == 'success' }}
shell: bash
env:
BINARY_NAME: ${{ inputs.pyinstaller-binary-name }}
ENTRYPOINT: ${{ inputs.pyinstaller-entrypoint }}
run: |
python3 -m pip install \
--require-hashes \
--user \
--requirement \
${GITHUB_ACTION_PATH}/configs/pip/pyinstaller/requirements.txt
python3 -m PyInstaller --onefile main.py --name gomod-go-version-updater
python3 -m PyInstaller --onefile "${ENTRYPOINT}" --name "${BINARY_NAME}"
# yamllint disable-line rule:line-length
- uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2.11.5
name: Attach a binary to a release
Expand Down
Loading