mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 13:53:40 +00:00
6e1847d1e9
* Use different environment per PR Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Fix main deployment by using CI-aware build script Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Use PR title and number in netlify deployment list Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Use exec Signed-off-by: Erik Michelson <github@erik.michelson.eu>
13 lines
358 B
Bash
Executable file
13 lines
358 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
if [[ -z "${GITHUB_ACTIONS}" ]]; then
|
|
echo "Running in netlify CI or manual"
|
|
exec yarn build:netlify
|
|
else
|
|
echo "Running in GitHub actions CI"
|
|
echo "Build is not necessary as already done prior to this step."
|
|
fi
|