mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
b008cac781
* Fix parameters in netlify cli script * Use node-modules linker when deploying to netlify Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
23 lines
593 B
Bash
Executable file
23 lines
593 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#
|
|
# SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
#
|
|
|
|
json=$($(dirname "$0")/netlify-cli.sh deploy --build --prod --json --message "${1:0:8}: $2")
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "Error while executing netlify! Will try again without json..."
|
|
$(dirname "$0")/netlify-cli.sh deploy --build --prod --message "${1:0:8}: $2"
|
|
exit 1
|
|
fi
|
|
|
|
echo "${json}"
|
|
|
|
url=$(echo "${json}" | jq -r .deploy_url)
|
|
logs=$(echo "${json}" | jq -r .logs)
|
|
|
|
echo "::set-output name=url::${url}"
|
|
echo "::set-output name=logs::${logs}"
|