Skip to content

Commit

Permalink
Custom netlify path
Browse files Browse the repository at this point in the history
  • Loading branch information
mkukawski authored and jsmrcaga committed Apr 13, 2024
1 parent 9db6c4e commit 5380100
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ inputs:
description: Command to install dependencies
required: false
default: ""
netlify_path:
description: Path to netlify CLI binary
required: false
default: "netlify"
build_command:
description: Command to build static website
required: false
Expand Down Expand Up @@ -78,6 +82,7 @@ runs:
MONOREPO_PACKAGE: ${{ inputs.monorepo_package }}
DEBUG: ${{ inputs.debug }}
COMMAND_EXTRA_FLAGS: ${{ inputs.command_extra_flags }}
NETLIFY_PATH: ${{ inputs.netlify_path }}

branding:
icon: activity
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export NETLIFY_SITE_ID="${NETLIFY_SITE_ID}"
export NETLIFY_AUTH_TOKEN="${NETLIFY_AUTH_TOKEN}"

# command based on https://cli.netlify.com/commands/deploy
COMMAND="netlify deploy --dir=${BUILD_DIRECTORY} --functions=${FUNCTIONS_DIRECTORY} --message=\"${NETLIFY_DEPLOY_MESSAGE}\""
COMMAND="${NETLIFY_PATH} deploy --dir=${BUILD_DIRECTORY} --functions=${FUNCTIONS_DIRECTORY} --message=\"${NETLIFY_DEPLOY_MESSAGE}\""

if [[ "${NETLIFY_DEPLOY_TO_PROD}" == "true" ]]
then
Expand Down

0 comments on commit 5380100

Please sign in to comment.