Fix environment variable in netlify deployment

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-09-18 21:24:42 +02:00
parent 877a8c6976
commit b41c9b762c
3 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ jobs:
node-version: 18
- name: Patch files
run: bash netlify/patch-files.sh
run: bash netlify/patch-files.sh "https://hedgedoc.dev/"
- name: Install dependencies
run: yarn install --immutable

View file

@ -35,7 +35,7 @@ jobs:
node-version: 18
- name: Patch files
run: bash netlify/patch-files.sh "${{ github.event.number }}"
run: bash netlify/patch-files.sh "https://${{ github.event.number }}--hedgedoc-ui-test.netlify.app/"
- name: Install dependencies
run: yarn install --immutable

View file

@ -15,4 +15,4 @@ 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
echo "Patch base URL"
echo HD_EDITOR_BASE_URL="https://${1}--hedgedoc-ui-test.netlify.app/" >> .env.production
echo HD_EDITOR_BASE_URL="${1}" >> .env.production