mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 11:43:59 -05: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>
15 lines
417 B
Bash
Executable file
15 lines
417 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
deployid="$1-$2"
|
|
|
|
json=$(yarn netlify deploy --build --context deploy-preview --alias "${deployid}" --json --message "[#$1] $3")
|
|
|
|
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}"
|