mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Add commit hash to version on netlify deployment (#1838)
This commit is contained in:
parent
757f957e0a
commit
eabc941c8f
5 changed files with 16 additions and 38 deletions
14
netlify/patch-files.sh
Normal file
14
netlify/patch-files.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
set -e
|
||||
|
||||
echo 'Patch intro.md to include netlify banner.'
|
||||
cp netlify/intro.md public/mock-backend/public/intro.md
|
||||
echo 'Patch motd.txt to include privacy policy.'
|
||||
cp netlify/motd.txt public/mock-backend/public/motd.txt
|
||||
echo 'Patch version.json to include git hash'
|
||||
jq ".version = \"0.0.0+${GITHUB_SHA:0:8}\"" src/version.json > src/_version.json
|
||||
mv src/_version.json src/version.json
|
Loading…
Add table
Add a link
Reference in a new issue