mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-14 10:23:03 +00:00
Fix environment variable in netlify deployment
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
877a8c6976
commit
b41c9b762c
3 changed files with 3 additions and 3 deletions
2
.github/workflows/deploy-main.yml
vendored
2
.github/workflows/deploy-main.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/deploy-pr.yml
vendored
2
.github/workflows/deploy-pr.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue